Command:
DSPPGMREF PGM(*ALL) OUTPUT(*OUTFILE) OBJTYPE(*ALL) OUTFILE(MYLIB/MYFILE)
Now you have created a file MYFILE in library MYLIB that contains list of programs with objects referenced to them.
To know which program uses MYPF file we can use SQL to retrieve it.
Command:
STRSQL
SELECT * FORM MYLIB/MYFILE
WHERE WHFNAM = 'MYPF'
Note:
WHFNAM is the object referencing to the program.
No comments:
Post a Comment