Example of Adding a Service Program to a Debug Session
In this example you add the service program CVTTOHEX to the debug session
which already previously started. (See Sample Service Program for a discussion
of the service program).
- If the current display is not the Display Module
Source display, type:
DSPMODSRCThe Display Module Source display appears.
- Press F14 (Work with module list) to show the Work with Module List display as shown in Figure 1.
- To add service program CVTTOHEX, on the first line of the display, type: 1 (Add program), CVTTOHEX for the Program/module field, MYLIB for the Library field. Change the default program type from *PGM to *SRVPGM and press Enter.
- Press F12 (Cancel) to return to the Display Module Source display.
Figure 1. Adding an ILE Service
Program to a Debug Session
Work with Module List
System: AS400S1
Type options, press enter.
1=Add program 4=Remove program 5=Display module source
8=Work with module breakpoints
Opt Program/module Library Type
1 cvttohex mylib *SRVPGM
RPGPGM MYLIB *PGM
DEBUGEX MYLIB *PGM
DBGEX *MODULE Selected
CPROC *MODULE
Bottom
Command
===> ________________________________________________________________________
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel