Example: How z/OS Debugger adds variables to the Monitor window automatically
The example in this section assumes that the following two lines of COBOL code are to be run:
COMPUTE LOAN-AMOUNT = FUNCTION NUMVAL(LOAN-AMOUNT-IN). 1
COMPUTE INTEREST-RATE = FUNCTION NUMVAL(INTEREST-RATE-IN).
Before you run the statement in Line 1 , enter the following command:
SET AUTOMONITOR ON ;
The name and value of the variables LOAN-AMOUNT
and LOAN-AMOUNT-IN
are
displayed in the automonitor section of the Monitor window. These
values are the values of the variables before you run the statement.
Enter the STEP
command. z/OS® Debugger removes LOAN-AMOUNT
and LOAN-AMOUNT-IN
from
the automonitor section of the Monitor window and then displays the
name and value of the variables INTEREST-RATE
and INTEREST-RATE-IN
.
These values are the values of the variables before you run the statement.
Refer to the following topics for more information related to the material discussed in this topic.
- Related concepts
- How z/OS Debugger automatically adds variables to the Monitor window
- Related tasks
- Adding variables to the Monitor window automatically
- Related references
- Description of the
SET AUTOMONITOR
command in IBM® z/OS Debugger Reference and Messages.