Previous Topic: Inspect and Modify Main StorageNext Topic: Modify the Value of a Variable


Display the Value of a Variable

When you are stopped at a breakpoint, you can request the display of the value of a variable directly from the source listing.

  1. To display its value where it is defined, type a d to the left of the statement defining it and press Enter, as shown in the following screen.

    CA InterTest for CICS Release 9.1.00 - PROTSYM FILE UNCOND BEFORE BREAKPOINT COMMAND ===> Program= PLIDEMO Option # Stmt # Margin= 01 Search= ------------------------------------------------------------------------------- _____ DMAP00O.DFHMS9 | ............ ---------+--------------------------------------------------------------------- _ 514.1 UNSPEC, SUBSTR, _ 515.1 LENGTH, ADDR) BUILTIN; _ 516.1 1 DCL 1 TS_AREA, _ 517.1 2 TS_SWITCH CHAR(1), d 518.1 2 TASKNUM FIXED DEC(5), _ 519.1 2 TS_TEXT CHAR(32); _ 520.1 1 DCL (TS_ITEM,TS_LEN) FIXED BIN(15,0); _ 521.1 1 DCL REC_RBA CHAR(4) INIT(' '); . . .

  2. To display the value of a variable where it is referenced, type a d to the left of the statement referencing it, place the cursor under any character in the variable, and press Enter.

    CA InterTest for CICS responds by displaying the contents of the variable in structured format, as shown next.

    CA InterTest for CICS Release 9.1.00 - MAIN STORAGE UTILITY - Termid = U057 Starting at Address =20304231 Structure Display Format 02 TASKNUM | ?00000. | 02 TS_TEXT | ............ | | ............ | | ........ | ------------------------------------------------------------------------------ PF1 Help 2 3 End 4 Return 5 6 Dump PF7 Backward 8 Forward 9 Caps Off 10 11 Redisplay 12 Structure CORE='TASKNUM' CAIN0478 AUTOMATIC DECIMAL FIELD CONTAINS INVALID PACKED DATA

    Note: CA InterTest for CICS displays more than just the contents of the specified variable (TASKNUM); it also displays all the items below it in the same PL/I structure.

  3. Press Clear or PF3 to return to the source listing.