Post by Post by John WoodHi.
Is there an OS/400 command to show which RPG program use a specified
physical / logical file?
I've just cocked our system up because I made a change to a
physical file
Post by Post by John Woodand had no idea that a certain sweet of programs used the file.
Cheers,
John.
The above answers are OK so far as they expect the RPG to have the correct
filename. I expect you would find all of the programs you are looking for
99% of the time but just when you least expect it there will be a slightly
different named file which gets used when an OVRDBF is applied in some
place, so be careful.
There are commercial tools to make this job easier. I used
DocuMint for a while, and I grew to like it and rely on it.
Of course, each of us over the years has hacked his own
tools for the purpose from time to time. Starting from
output of DSPPGMREF across all application libraries, I have
found it useful to look at all references with the
particular file level identifier. Of course, LVLCHK(*NO)
can still let you miss references to your file.
I know no truly foolproof way to accomplish your purpose.
Alan Turing tells me not to spend much effort looking for a
perfect solution.
HTH.
Terry.
Available for contract programming.