After you start a debug session, you can remove program objects from the session.
To remove Integrated Language Environment® (ILE) program objects and service programs from a debug session, use option 4 (Remove program), next to the program object you want to remove, on the Work with Module List display. The Work with Module List display can be accessed from the Display Module Source display by pressing F14 (Work with Module List). To remove a service program, change the default program type from *PGM to *SRVPGM.
Work with Module List
System: SYSTEM01
Type options, press enter.
1=Add program 4=Remove program 5=Display module source
8=Work with module breakpoints
Opt Program/module Library Type
*LIBL *PGM
4 WEEKDAY2 MYLIB *PGM
WEEKDAY2 *MODULE
DSPWKDAY MYLIB *PGM
DSPWKDAY *MODULE Selected
AABP1 *MODULE
Bottom
Command
===>
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel
Work with Module List
System: SYSTEM01
Type options, press enter.
1=Add program 4=Remove program 5=Display module source
8=Work with module breakpoints
Opt Program/module Library Type
*LIBL *PGM
DSPWKDAY MYLIB *PGM
DSPWKDAY *MODULE Selected
AABP1 *MODULE
Bottom
Command
===>
F3=Exit F4=Prompt F5=Refresh F9=Retrieve F12=Cancel
Program WEEKDAY2 removed from source debugger.
When you have finished removing program objects from the debug session, press F3 (Exit) from the Work with Module List display to return to the Display Module Source display.
To remove original program model (OPM) programs from a debug session, use the Remove Program (RMVPGM) command. If OPM source level debugging is active, OPM programs that are created with source debug data may be listed on the Work with Module List display. You can remove these programs from the debug session by using option 4 (Remove program) on the Work with Module List display.