How to find files program is using in the AS400

I am trying to find the file a program is using so I can write a query using its fields. How would I look at the programs files to see what it is using?

I have tried looking for the file using infor XA, I have tried searching though different libraries for the program, and I have tried looking for command to call or display the program's files but cannot find anything. I looking for the process to review the code or files for the program.


  • The Display Program References (DSPPGMREF) command will list the objects a program references.

    The other option is to "Display open files" with a "Display Job" (DSPJOB) while the program is active.