CL Programming

Removing Program Objects from a Debug Session

You can remove program objects 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 you want to remove, on the Work with Module List display. See Figure 10-3. 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.

Figure 10-3. Removing an ILE Program Object from a Debug Session. When the Enter key is pressed, program WEEKDAY2 is removed from the debug session.

+--------------------------------------------------------------------------------+
|                            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                    |
|                                                                                |
+--------------------------------------------------------------------------------+

Figure 10-4. Removing an ILE Program Object from a Debug Session

+--------------------------------------------------------------------------------+
|                             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.

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

To remove 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.


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