1,025 pts.
 How to identify the AS/400 program names which is using the Specific module?
How to identify the program names which is using the Specific module? Module1 is used in Pgm1, Pgm2, and Pgm3.. How to identify program names which is related to module1?

Software/Hardware used:
AS400
ASKED: August 14, 2010  4:10 AM
UPDATED: August 16, 2010  10:22 PM

Answer Wiki:
The DSPPGM command can print a list of modules for a program. If you want an automated solution, the <a href="http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/qbnlpgmi.htm">List ILE Program Information (QBNLPGMI) API</a> will return a list of modules when you request format PGML0100. If your module is in a service program, then DSPPGMREF can list service programs that are referenced by a program. The list can be to an outfile. If a module is going to be in more than one program, then it probably should be in a service program. Tom
Last Wiki Answer Submitted:  August 16, 2010  7:33 pm  by  TomLiotta   107,915 pts.
All Answer Wiki Contributors:  TomLiotta   107,915 pts. , MelanieYarbrough   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

Here i dont know the Program Names. I wanted to find all the program names which is attached with specfic module

 1,025 pts.

 

Here i dont know the Program Names.

Use the List Objects (QUSLOBJ) API to build a list of all programs into a user space or use the DSPOBJD command to list program names into a database file. Then pass each program name from the user space or from the file to the QBNLPGMI API to get a list of each programs’ modules.

Every time you find a program that has the module name that you’re looking for in its list, write the program name to some permanent record — into a database file, into a message queue, into a user index entry; wherever you can retrieve the list of names that you built.

Whoever wrote the programs was responsible for keeping track of modules. Change Management products are sold that will keep track automatically, or you can create your own tools.

As mentioned earlier, if a module is going to be used in more than one program, then it should be in a service program (unless justification exists for binding by copy). It’s much easier to find where service programs are used.

Tom

 107,915 pts.

 

Here is the start of a set of articles I wrote on this topic. The first article is named Module, Module, Who’s Got My Module?

 6,055 pts.