Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

service program

Status
Not open for further replies.

thelearner

Programmer
Jan 10, 2004
153
US
Hi,

Is it possible to debug subprocedure in the service program?
What's the command to display what programs use which subprocudure of the service program?

Thanks
 
Hi again,

Debug subprocedure in a service program

1/ Compile both main program and modules containing the subprocedure(s) to debug with option DBGVIEW(*SOURCE) or DBGVIEW(*LIST)
2/ STRDBG MainProgram
3/ Add needed breakpoints in MainProgram
3/ Hit F14 to work with module list
4/ On the first line, specify Opt = 1 Type = *SRVPGM
5/ Choose Program/modules you want to debug using Opt 5 = Display module source
6/ Add necessary breakpoints in the subprocedure(s)
7/ Go back to the module list hitting F14 again and loop §5
8/ When done, hit F12 to quit
9/ On a command line, type CALL MainProgram ...

The command to display what programs use which subprocedure of the service program

Check out this (long) URL and you'll get a very close answer from Scott Klement.

HTH
Philippe
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top