× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.