During your z/OS® Debugger session
you can use expressions that use string constants as one operand,
as well as expressions that include variable names or number constants
as single operands. All COBOL string constant types discussed in
the Enterprise COBOL for z/OS Language Reference are
valid in z/OS Debugger,
with the following restrictions:
- The following COBOL figurative constants are supported:
- ZERO, ZEROS, ZEROES
- SPACE, SPACES
- HIGH-VALUE, HIGH-VALUES
- LOW-VALUE, LOW-VALUES
- QUOTE, QUOTES
- NULL, NULLS
- Any of the above preceded by ALL
- Symbolic-character (whether or not preceded by ALL).
- An N literal, which starts with N" or N',
is always treated as a national literal.
Additionally,
z/OS Debugger allows
the use of a hexadecimal constant that represents an address. This
H-constant is
a fullword value that can be specified in hex using numeric-hex-literal
format (hexadecimal characters only, delimited by either quotation
marks (") or apostrophes (') and preceded by
H).
The value is right-justified and padded on the left with zeros.
The following example:
LIST STORAGE (H'20cd0');
displays the contents at a given address in hexadecimal format. You
can use this type of constant with the
SET command.
The following example:
SET ptr TO H'124bf';
assigns a hexadecimal value of 124bf to the variable
ptr.