How to know which program uses a particular module?

2505 pts.
Tags:
AS/400
AS/400 commands
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • Anu143
    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 pointsBadges:
    report
  • bvining
    I wrote a series of articles, starting with Module, Module, Who's Got My Module located at http://www.mcpressonline.com/programming/apis/the-api-corner-module-module-whos-got-my-module.html, almost five year ago now, which provides this capability. The full series is: http://www.mcpressonline.com/programming/apis/the-api-corner-module-module-whos-got-my-module.html http://www.mcpressonline.com/programming/apis/the-api-corner-finding-modules-in-a-srvpgm.html http://www.mcpressonline.com/programming/apis/the-api-corner-finding-all-*srvpgms-on-the-system.html http://www.mcpressonline.com/programming/apis/the-api-corner-take-advantage-of-open-list-apis.html http://www.mcpressonline.com/programming/apis/the-api-corner-finding-modules-in-a-pgm.html http://www.mcpressonline.com/programming/apis/the-api-corner-parallelism-with-open-list-apis.html
    6,620 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following