You can change the module object that is shown on the Display Module Source display by using option 5 (Display module source) 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). The Work with Module List display is shown in Figure 36.
To select a module object, type 5 (Display module source) next to the module object you want to show. If you use this option with an ILE program object, the module object containing the source view is shown (if it exists). Otherwise, the first module object bound to the program object with debug data is shown. If you use this option with an OPM program object, then the source or listing view is shown (if available).
Figure 36. Display a Module View
+--------------------------------------------------------------------------------+ | 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___ | |_ TEST TESTLIB *PGM | |5 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 | +--------------------------------------------------------------------------------+
Once you have selected the module object that you want to view, press Enter and the selected view will be shown in the Display Module Source display.
An alternate method of changing the module object that is shown is to use the DISPLAY debug command. On the debug command line, type:
DISPLAY MODULE module-name
The module object module-name will now be shown. The module object must exist in a program object that has been added to the debug session.
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.