Expression command (C and C++)
The Expression
command evaluates the given expression.
The expression can be used to either assign a value to a variable
or to call a function.
- expression
- A valid z/OS® Debugger C and C++ expression. Assignment is affected by including one of the C and C++ assignment operators in the expression. No use is made of the value resulting from a stand-alone expression.
Usage notes
- Function invocations in expressions are restricted to functions contained in the currently executing enclave.
- The
Expression
command cannot be used while you replay recorded statements by using thePLAYBACK
commands.
Examples
- Initialize the variables
x
,y
,z
. You can use functions to provide values for variables.x = 3 + 4⁄5; y = 7; z = 8 * func(x, y);
- Increment
y
and assign the remainder of the integer division ofomega
by 4 toalpha
.alpha = (y++, omega % 4);
- To list and assign a new value to
R1
in the disassembly view:LIST(R1); R1 = 0x0001FAF0;