Search File Object

15 pts.
Tags:
iSeries programming commands
RPG/400
Hi, I nedd to search a file object, for where all it is being used in various programs across various library. Can you please let me know a command to do the same, where it will search all programs across various libraries.

Answer Wiki

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

Hello,
I have developed a utility which we have used for years in house that works great. You specify the libraries you want to use
and it builds a cross reference file. Then on command you specify a file name and are given a display with all accesses to that file (PF,LF,PRTF or DSPF) by program and an option to print the list. You can have it for free if you are interested.
Just let me know where to send it.
Reg

Hi,

You could try using ANZPGM, this will let you analyze multiple libraries.

Regards,

Martin Gilbert.

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

Although you can find most or all <i>direct, native</i> file references, you might miss many or even most references. It will depend on how ‘modern’ your programming is, how much SQL you use and other factors.

More modern code will have potentially many file references maintained in variables. And most SQL references will also obscure file usage. Cross-references will generally miss all of those.

Be prepared to search every program source manually.

The valid source of information is the audit journal. Object-Read and Object-Change audit entries will reliably tell you which program used a file.

Tom

Discuss This Question: 2  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
  • Tpinky
    Hello, You could use FNDSTRPDM to find where an object is being used. T
    4,165 pointsBadges:
    report
  • JStu
    You could also use DSPPGMREF and output the results to an outfile and then search the outfile. This does not require you to have the source for all of your programs.
    65 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