Previous Topic: Modify the Value of a VariableNext Topic: Keep Variables in the Keep Window


Modify the Value of a Variable with the MOVE Statement

Overtyping the main storage display is the easiest way to change the value of a variable. However, you will want to use the CA InterTest for CICS generated MOVE statement to modify a variable when you do not know the type of data (binary, packed, and so on) or its length. The MOVE statement takes care of all the details for you.

  1. To modify a variable where it is defined, type an m to the left of the statement defining it and press Enter. For example, to modify the value of TASKNUM, you would type in m instead of d.
  2. If you type an m to the left of multiple lines, CA InterTest for CICS generates multiple MOVE statements.
  3. To modify a variable where it is referenced, type an m to the left of the statement referencing it, place the cursor under any character in the variable, and press Enter.

    CA InterTest for CICS generates and displays a fill‑in‑the‑blanks MOVE statement, shown next.

    CA InterTest for CICS Release 9.1.00 - PROTSYM FILE UNCOND BEFORE BREAKPOINT COMMAND ===> Program= PLIDEMO Option # Stmt # Margin= 01 Search= ------------------------------------------------------------------------------- _____ DMAP00O.DFHMS9 | ............ ---------+--------------------------------------------------------------------- MOVE ________________________________________________________________ to TASKNUM Overtype Underscores with a Data-Name, Figurative Constant, Alphanumeric Literal, or Numeric Literal

  4. Type one of the following values in the MOVE field:
  5. Press Enter to execute the MOVE statement.

    CA InterTest for CICS displays a main storage display showing the new value of the variable. If you execute several MOVE statements, CA InterTest for CICS shows the main storage displays one-at-a-time. Press Clear to see the next one.

  6. From the main storage display, press Clear or PF3 to return to the source listing.