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



This worked well!

Thanks,
Lance



-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Luis Rodriguez
Sent: Friday, October 29, 2010 11:16 AM
To: Midrange Systems Technical Discussion
Subject: Re: Finding cross library logicals

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.


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

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.