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

  1. If the current display is not the Display Module Source display, type:
    DSPMODSRC

    The Display Module Source display appears.

  2. Press F14 (Work with module list) to show the Work with Module List display as shown in Figure 102.
  3. 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.
  4. Press F12 (Cancel) to return to the Display Module Source display.
Figure 102. 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


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