290 pts.
 Question is about 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
ASKED: January 29, 2013  7:27 AM
UPDATED: January 29, 2013  12:46 PM

Answer Wiki:
Find string utility should have to prefer, if you want to look in a particular source file/ source librar.
Last Wiki Answer Submitted:  January 30, 2013  1:09 pm  by  eductn   70 pts.
All Answer Wiki Contributors:  eductn   70 pts. , Michael Tidmarsh   11,380 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

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

 107,695 pts.

 

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.
 
 

 44,060 pts.

 

Not sure if this would help, DSPPGMREF to show all references ?

 3,890 pts.

 

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

 107,695 pts.

 

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.

 290 pts.

 

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

 107,695 pts.

 

yes the answer which i gave, will only work when all the service programs have their binder language in the pdm tool

 290 pts.