OK I agree the system catalog is the way to get a list of objects. Now that I have my list of objects, how can I check each one to find locks on it? For example, is there a DSPOBJLCK *ALL *PF *OUTFILE(outfilename) type of command? How would I build my own?
Any ideas?
Thanks
-----Original Message-----
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of rob@xxxxxxxxx
Sent: Tuesday, August 26, 2014 6:45 AM
To: Midrange Systems Technical Discussion
Subject: Re: method to view objects in production lib with locks on them
Once again, please keep in mind that IBM i comes with a built in database
called DB2. And DB2, like most databases, has something called a "system
catalog". There is no need to do a DSPOBJD of every file out there to an
output file. This file already exists and is automatically updated
whenever a file is created. Query the file SYSTABLES. If you want a list
of each partition (member) of each table (file) then use SYSPSTAT.
Rob Berendt
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.