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?
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
Free Guide: Managing storage for virtual environments
Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!
Discuss This Question: 3  Replies