Replacing a variable in the Monitor window with another variable
When you add a variable to the Monitor window, z/OS® Debugger assigns the variable a reference number between 1 and 99. You can use the reference numbers to help you replace a variable in the Monitor window with another variable.
To replace a variable in the Monitor window with another variable, do the following steps:
- Verify that you know the reference number of the variable in the Monitor window that you want to replace.
- Move the cursor to the command line.
- Type the following command, substituting reference_number with
the reference number of the variable you want to replace and variable-name with
the name of a new variable:
MONITOR reference_number LIST variable-name;
You can specify only an existing reference number or a reference number that is one greater than the highest existing reference number.
- Press Enter. z/OS Debugger adds the new variable to the Monitor window on the line that displayed the old variable, and displays the current value of that variable.
If you added an element of an array to the Monitor window, you can replace that element with another element of the same array by doing the following steps:
- Move your cursor to the Monitor window and place it under the subscript you want to change.
- Type in the new subscript.
- Press Enter. z/OS Debugger replaces the old element with the new element, then displays a message confirming the change.