Modules and Program Dependancies

pts.
Tags:
Application development
AS/400
RPG
RPGLE
Is there any command or method to find, the Number of Programs that are created with a Specific Module? Using DSPPGM, we can find the modules used to create the Pgm. But is there any command or method to find out the No of Programs , that a specific module is being attached/bound?

Answer Wiki

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

There is a shareware command, ANZILEPGM. I copied it and use it at my office. It’s in iSeries Network. If you Google ANZILEPGM you’ll find it. Essentially, what it does is to dump a DSPOBJD listing of a library to a file. It reads through the file figuring out what *SRVPGM’s and *MODULE’s are used. It leaves you with two files that you can either query for information or write programs over.

Discuss This Question: 4  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
  • LeslieL
    We use Hawkeye's Pathfinder. I would think there are probably several packages that would provide that kind of cross reference data. And I wonder whether there are any OS400 system catalog files for members?
    40 pointsBadges:
    report
  • Vatchy
    This might be a partial answer. Use the command DspPgmRef. The best way, in my experience, to use this command is this: SBMJOB CMD(DSPPGMREF PGM(*ALL/*ALL) OUTPUT(*OUTFILE) OUTFILE(QGPL/PGMREF)) This will build the database file QGPL/PGMREF with all of the program references for all of the programs on your system. It will take quite a while to run. After it is finished, you can query the file for the service program name in the field WHFNAM. It does not list the modules but it does list the service programs where the module resides.
    1,410 pointsBadges:
    report
  • TomLiotta
    When the question is "How programs have this module bound into them?", the correct answer ought to be "One." If a module is being bound into multiple programs, it should be created as a service program. It shouldn't be bound into anything else. Tom
    125,585 pointsBadges:
    report
  • bvining
    If you are interested in learning how to find where the module is used, and get a taste of system APIs at the same time, you may want to check out a series of articles I wrote. From here look for the article entitled Module, Module, Who's Got My Module. That article is the first of a series covering the topic. Bruce Vining
    6,540 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