Try this:

SELECT DBFFIL as MainFile, DBFLIB as MainLib,
DBFFDP as DepFile, DBFLDP as DepLib,
DBFTDP as DepType
FROM QADBFDEP
WHERE DBFLIB <> DBFLDP ;

Please be aware that the file name columns are Varchar(128), so maybe you
would prefer to CAST or SUBSTR them...

HTH,

Luis Rodriguez
IBM Certified Systems Expert — eServer i5 iSeries
--



On Fri, Oct 29, 2010 at 1:06 PM, sjl <sjl_abc@xxxxxxxxxxx> wrote:

Lance -

DSPDBR of all physical files to an outfile, then look for instances where
the logical file library is not the same as the physical file library

1) DSPDBR FILE(LIBRARY/PFILE) OUTPUT(*OUTFILE) OUTFILE(QTEMP/QADSPDBR)

2) strsql and run the following query:

Select whrfi, whrli, whrefi, whreli from qtemp/qadspdbr where whrli <>
whreli

- sjl

"Lance Gillespie" <LGillespie@xxxxxxxx> wrote in message
news:mailman.10917.1288373294.2702.midrange-l@xxxxxxxxxxxxxxx
I would like to identify any logicals I have
on my system that are based on physical in a
different library.

I imagine I can do this with the systables stuff
in qsys2, but don't know how to start.

Any ideas?

Thanks,
Lance


--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.