1,880 pts.
 How to know which program uses a particular module?
Consider I have a module, and I have made some change to the module, (not a parameter change, but just a logic change). Now I have to update all the programs which uses this module. Without the help of any external tools or APIs is there any AS400 command similar to DSPPGMREF which will let me know where all these module is being used?

Software/Hardware used:
ASKED: June 14, 2012  4:45 AM
UPDATED: June 14, 2012  12:00 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

There should only be one program that uses it. If a module is to be used in multiple programs, bind it into a service program.

However, you can call the List ILE Program Information (QBNLPGMI) API in a loop passing in the name of a different program each time. It can list the modules in each program into a user space. You can check the list for a module name or write the list to a file. When all modules of all programs are in a file, you can query it for module names.

I run a job every night over my program libraries to build a list of modules just so I’ll have them handy. I do the same for service programs.

Tom

 107,735 pts.

 

Right Tom, Many companies use this API.. Many will have the utility developed..

As just to enter the module name or file name and to list all the modules and programms using it

 525 pts.