Question is about ILERPG

335 pts.
Tags:
AS/400
AS/400 commands
ILERPG
I have been given a module name and I'm asked to find out the name of the service programs which included that module. Is there any possible way to find it?

Software/Hardware used:
iseries

Answer Wiki

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

Find string utility should have to prefer, if you want to look in a particular source file/ source librar.

Discuss This Question: 7  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
    Call the List Service Program Information (QBNLSPGM) API. Request *ALL service programs in your service program library. Use format SPGL0100 for the output format. Finally, loop through the returned list to check for matches against module name; for each match, extract the associated service program name.There should only be a single service program found. There would rarely be any reason a module should be bound into more than one service program.Tom
    125,585 pointsBadges:
    report
  • philpl1jb
    A simple method if source is available. I would search the source:  go into wrkmbrpdm type 25 beside the first member press f13 -- repeat all press enter enter procedure name and press enter.    
    49,850 pointsBadges:
    report
  • ToddN2000
    Not sure if this would help, DSPPGMREF to show all references ?
    9,915 pointsBadges:
    report
  • TomLiotta
    A search of source can show if another module references one or more of the procedures in the target module. (But won't necessarily find references by procedure poiners if those exist.) But finding a procedure reference doesn't tell you what service program the target module is in; it only indicates that a procedure is referenced in another module which might be in a different service program. The procedure reference might be in a *PGM. And DSPPGMREF doesn't list *MODULEs. I think the API is the only good choice. -- Tom
    125,585 pointsBadges:
    report
  • JSDHFKJHA
    i finally made a experiment thru which i will get the list of all the objects which are using that particular module.the thing we need to do is first we need to get the binder language of all the service pgms on our pdm screen then we need to type the number 25 on the first most opt and we need to take shift+f1 which makes the number 25 to appear on all the objects available on the screen and now we need to take the enter,thru which we will enter into fndstrpdm screen.there we need to type the module which we want to find out and we need to turn a parameter called 'list'as 'y' so that we will get the list of all the objects which r using that particular module and this list will be stored in the spolled files so,check for the list, in the spolled files.u will fine the list of objects which are referring that particular module.
    335 pointsBadges:
    report
  • TomLiotta
    Be aware that it will only find references in binder source. For any source that is not used for existing objects, it can be a false positive. If any service program is created without using that binder language, it can be a false negative. To be certain of them all, you have to check the service programs, not the source. Or check all the service programs to verify that every one matches the existing source. But if it's not really important to be sure, then it doesn't really matter. -- Tom
    125,585 pointsBadges:
    report
  • JSDHFKJHA
    yes the answer which i gave, will only work when all the service programs have their binder language in the pdm tool
    335 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