Question

  Asked: Jul 18 2008   10:32 AM GMT
  Asked by: AS000


Search File Object


RPG/400, iSeries programming commands

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.

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0



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.
  • AddThis Social Bookmark Button

Browse more Questions and Answers on AS/400.

Looking for relevant AS/400 Whitepapers? Visit the Search400.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register

Tpinky  |   Jul 18 2008  12:42PM GMT

Hello,

You could use FNDSTRPDM to find where an object is being used.

T

 

JStu  |   Jul 18 2008  1:39PM GMT

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.