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?


-----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

This thread ...


Return to Archive home page | Return to MIDRANGE.COM home page