serch for reference of PF/LF

5 pts.
Tags:
PF/LF
RPG
Is there any command to find out any perticular PF OR LF used in which RPG program across all libraries and SOURCE PHYSICAL FILES ????

Answer Wiki

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

You could use the AS/400 command DSPPGMREF which can create a datafile that you can query/view/search.
ie.
<b>DSPPGMREF PGM(KLMLIB/*ALL) OUTPUT(*OUTFILE) OBJTYPE(*ALL) OUTFILE(KLMLIB/PGMREF)</b>

This command will review <i>ALL OBJECTS </i>in library <i>KLMLIB</i>, it will put the output in a <i>OUTFILE</i> called <i>PGMREF</i> in library <i>KLMLIB</i>.
The file will contain data elements such as <i>Program Name, Description, Used Object, Object Type</i>, plus more.
Kevin

Plenty of off the shelf tools.

The best one I have used is Hawkeye.

There is no AS400 Command.

You could write your own, using CL, and RPG.

QRPGLESRC etc, is a physical file you can read through each member looking from position 6 for ‘F’ and Position 7 – to 16, for a match on the file name.

Hawkeye will let you identify where more than files are used, *CMD, *PGM etc.

It also lets you xplode and implode jobs.

A basic limitation is that you can have multiple copies of the same file in different libraries. The one actually used by the program is the first one found in the library list at execution time.

Discuss This Question: 3  Replies

 
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
  • reg
    I have written code that uses DSPPGMREF to get all information from libraries you specify on your system and create a file with that data. Then by simply using a command with the desired file name (PF, LF, DSPF or PRTF) you are given a display showing all program references and date of last use. Will gladly send this to you in a (*SAVF) savefile free of charge.
    280 pointsBadges:
    report
  • Try
    Use WRKOBJPDM command with option 25 & F13 to serach in a source file.
    35 pointsBadges:
    report
  • Bu
    hi Reg. I will be obliged by this utility if you can send me on bhaveshu@groupashima.com I have written code that uses DSPPGMREF to get all information from libraries you specify on your system and create a file with that data. Then by simply using a command with the desired file name (PF, LF, DSPF or PRTF) you are given a display showing all program references and date of last use. Will gladly send this to you in a (*SAVF) savefile free of charge. Thanks Bhavesh
    60 pointsBadges:
    report

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