ILE COBOL Programmer's Guide

Removing Program Objects or Service Programs from a Debug Session

You can remove program objects or service programs from a debug session after starting the session.

To remove ILE program objects and service programs from a debug session, use option 4 (Remove program), next to the program object or service program you want to remove, on the Work with Module List display (see Figure 35). The Work with Module List display can be accessed from the Display Module Source display by pressing F14 (Work with Module List).

To remove OPM program objects from a debug session, you have two choices depending on the value specified for OPMSRC. If you specified OPMSRC(*YES), by using either STRDBG, the SET debug command, or CHGDBG, then you remove an OPM program using the Work with Module display. (Note that there will not be a module name listed for an OPM program.) There is no limit to the number of OPM programs that can be removed from a debug session at one time when OPMSRC(*YES) is specified. If you specified OPMSRC(*NO), then you must use the Remove Program (RMVPGM) command. Only ten OPM programs can be in a debug session when OPMSRC(*NO) is specified.

Figure 35. Removing an ILE Program Object from a Debug Session

+--------------------------------------------------------------------------------+
|                            Work with Module List                               |
|                                                            System:   ISERIES   |
|Type options, press enter.                                                      |
|  1=Add program   4=Remove program   5=Display module source                    |
|  8=Work with module breakpoints                                                |
|Program                                                                         |
|Opt     Program/module     Library        Type                                  |
|_        ____________      *LIBL_____     *PGM___                               |
|4        TEST              TESTLIB        *PGM                                  |
|_          SAMPMDF                        *MODULE                               |
|_        MYPGM1            TESTLIB        *PGM                                  |
|_          MYPGM1                         *MODULE     Selected                  |
|_        USERDSP           DSPLIB         *SRVPGM                               |
|_          SAMPMDF                        *MODULE                               |
|_          GETUSER                        *MODULE                               |
|                                                                      Bottom    |
|Command                                                                         |
|===> ___________________________________________________________________        |
|F3=Exit   F4=Prompt   F5=Refresh   F9=Retrieve   F12=Cancel                     |
+--------------------------------------------------------------------------------+

When you have finished removing program objects or service programs from the debug session, press F3 (Exit) from the Work with Module List display to return to the Display Module Source display.

Note:
You must have *CHANGE authority to a program to remove it to a debug session.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]