How to identify the AS/400 program names which is using the Specific module?

1215 pts.
Tags:
AS/400
AS400 RPGLE
RPGLE
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

Answer Wiki

Thanks. We'll let you know when a new response is added.

The DSPPGM command can print a list of modules for a program. If you want an automated solution, the List ILE Program Information (QBNLPGMI) API 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

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
  • rajeshece
    Here i dont know the Program Names. I wanted to find all the program names which is attached with specfic module
    1,215 pointsBadges:
    report
  • TomLiotta
    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
    125,585 pointsBadges:
    report
  • bvining
    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,485 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