MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » August 2014

RE: method to view objects in production lib with locks on them



fixed

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





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

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact