Previous Topic: Use Your Source ListingNext Topic: Remove MON and NOM


Set MON and NOM

To set a location for a MON option in your source listing, enter a plus sign, +, to the left of the statement in your listing where you want monitoring to begin, and press Enter. Likewise, to set a location for a NOM option, enter a minus sign, ‑, to the left of the statement in your listing where you want monitoring to stop, and press Enter. If a password is required, enter the password at the prompt.

Example

The following screen shows setting MON and NOM in your source listing.

    CA InterTest for CICS V9.1 - PROTDEM FILE SOURCE LISTING DISPLAY    COMMAND ===>                                                                   Program= COBDEMO  Option #       Stmt #                             Margin= 01                    Label/Search Arg=                                             OPTS 1 Proc div  2 Work-stor 3 Link sect 4 D-map      5 Clst/Pmap More:   +        6 Data xref 7 Proc xref 8 Err msgs  9 Srch fwd  10 Srch bwd              PFKS 1 Help      2           3 End        4 Profile    5 Monitor    6 Menu        7 Backward  8 Forward   9           10           11           12 Status        _ 01057     MOVE ALL '*' TO TASKTEXT OF TASKSTRUCTURE2.                      _ 01058     GO TO SENDMAP00.                                                è+  01059 INITIALIZETABLE.                                                       _ 01060     MOVE SUB1 TO STATENUMBER (SUB1),                                 _ 01061                   COUNTYNUM1 (SUB1, SUB2).                          _ 01062     MOVE ','   TO COUNTYCOMM (SUB1, SUB2).                           _ 01063     MOVE SUB2 TO COUNTYNUM2 (SUB1, SUB2).                           _ 01064                                                                      è-  01065 DATANAME.                                                            _ 01066     IF  TASKSWITCH3 EQUAL SPACE                                      _ 01067     MOVE 'A' TO TASKSWITCH3                                            _ 01068     MOVE 'DMAP02' TO MAPNAME                                            _ 01069     GO TO SENDREWRITERETURN.                                         _ 01070     GO TO SENDMAP00.                                                _ 1071 SETVARREC.      

Set breakpoints within the execution path of the MON and the NOM locations in the program by using the + and - line commands. The + line command activates or starts segmented monitoring when that program statement is executed. The - command stops segmented monitoring when the program statement is executed. These commands will not take effect if the program statement is never executed.

Note: If you specify a MON or NOM option and a breakpoint at the same location, CA InterTest for CICS displays the character for the first option entered in column 1, although both options are set. To obtain a status display of the options in effect, enter STATUS in the command line, and press Enter.