简体   繁体   中英

I have a PF , how to get the list of programs that is using that particular PF?

I have a specific physical file. How do I get a list of programs that is using that PF. Is there any command (or native utility) in AS400 which can fetch that list and give that in an outfile?

The command DSPPGMREF does a pretty good job although it can take a little while to run and you have to query the output of the command to find the usages. There are also a quite a few config parameters which alter the type of data the command produces.

Basically, the command is run over all the programs and it compiles all the usages (Files, data areas, display files etc) and writes those to a file which can be queried to find the particular file in question.

DSPPGMREF   PGM(LIBRARY/*ALL)  OUTPUT(*OUTFILE)
            OUTFILE(QTEMP/OUTFILE)

IBM DSPPGMREF command

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM