Change a module object

You can change the module object that is shown on the Display Module Source display .

You do this 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 Display Module Source display is shown below.

To select a module object, type 5 (Display module source) next to the module object you want to show.

Figure 1. Display a Module View
                            Display Module Source
 
 Program:   DSPWKDAY       Library:   MYLIB          Module:   DSPWKDAY
     24      500-              CALL       PGM(WEEKDAY2) PARM(&DAYOFWK)
     25      600-              IF         COND(&DAYOFWK *EQ 1) THEN(CHGVAR +
     26      700                            VAR(&WEEKDAY) VALUE('Sunday'))
     27      800-              ELSE       CMD(IF COND(&DAYOFWK *EQ 2) THEN(CHGV
     28      900                            VAR(&WEEKDAY) VALUE('Monday')))
     29     1000-              ELSE       CMD(IF COND(&DAYOFWK *EQ 3) THEN(CHGV
     30     1100                            VAR(&WEEKDAY) VALUE('Tuesday')))
     31     1200-              ELSE       CMD(IF COND(&DAYOFWK *EQ 4) THEN(CHGV
     32     1300                            VAR(&WEEKDAY) VALUE('Wednesday')))
     33     1400-              ELSE       CMD(IF COND(&DAYOFWK *EQ 5) THEN(CHGV
     34     1500                            VAR(&WEEKDAY) VALUE('Thursday')))
     35     1600-              ELSE       CMD(IF COND(&DAYOFWK *EQ 6) THEN(CHGV
     36     1700                            VAR(&WEEKDAY) VALUE('Friday')))
     37     1800-              ELSE       CMD(IF COND(&DAYOFWK *EQ 7) THEN(CHGV
     38     1900                            VAR(&WEEKDAY) VALUE('Saturday')))
                                                                        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 keys
 

After you select the module object that you want to view, press Enter. The selected module object is shown in the Display Module Source display.

An alternate method of changing a module object 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 or service program object that has been added to the debug session.