Changing the View of a Module
Several different views of an ILE RPG module can be displayed depending
on the values you specify when you create the module. They are:
- Root source view
- COPY source view
- Listing view
You can change the view of the module object that is shown on the Display Module Source display through the Select View display. The Select View display can be accessed from the Display Module Source display by pressing F15 (Select View). The Select View display is shown in Figure 1. The current view is listed at the top of the window, and the other views that are available are shown below. Each module object in a program object can have a different set of views available, depending on the debug options used to create it.
For example, to change the view of the module from root source to listing,
follow these steps:
- Type DSPMODSRC, and press Enter. The Display Module Source display is shown.
- Press F15 (Select view). The Select View window is shown in Figure 1.
Figure 1. Changing a View of a Module
Display Module Source .............................................................................. : Select View : : : : Current View . . . : ILE RPG Copy View : : : : Type option, press Enter. : : 1=Select : : : : Opt View : : 1 ILE RPG Listing View : : ILE RPG Source View : : ILE RPG Copy View : : : : Bottom : : F12=Cancel : : : :............................................................................: More... Debug . . . _________________________________________________________________ _______________________________________________________________________________ F3=End program F6=Add/Clear breakpoint F10=Step F11=Display variable F12=Resume F17=Watch variable F18=Work with watch F24=More keysThe current view is listed at the top of the window, and the other views that are available are shown below. Each module in a program can have a different set of views available, depending on the debug options used to create it.Note: If a module is created with DBGVIEW(*ALL), the Select View window will show three views available: root source, COPY, and listing. If the module has no /COPY members, then the COPY view is identical to the root source view. - Type a 1 next to the listing view, and press Enter. The Display Module Source display appears showing the module with a listing view.