Listing Joined Files in as/400

25 pts.
Tags:
AS/400 Library
AS/400 Logical Programming
Logical File
How can I get a listing of logical join files within a library?

Software/Hardware used:
AS400

Answer Wiki

Thanks. We'll let you know when a new response is added.

i think DspFd (Display File Description) will do this. Press F4 on the field for what type of information.

-Sarge

==========================================================

DSPFD will do it. Use this format:<pre>
DSPFD FILE( mylib/*ALL )
TYPE( *ACCPTH )
OUTPUT( *OUTFILE )
FILEATR( *LF )
OUTFILE( QTEMP/LF )</pre>
That will list all LFs in library “mylib” to a temporary file named LF in QTEMP. (You can use a name other than LF and you can put it in a perm,anent library if you don’t want QTEMP.)

The FILEATR( *LF ) only selects for LFs. The TYPE( *ACCPTH ) only pulls the related access path info from the file descriptions.

After the QTEMP/LF file is built, you can query it to find which LFs are JOIN LFs. The APJOIN column will be ‘Y’ if it’s a join; otherwise it will be ‘N’.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following