You can enter the following types of COBOL expressions
in an expression entry field:
Variable:
A variable used in your program. The following can be specified with
COBOL variables:
- Group qualification (for example, A OF B OF C).
- Table subscripting (for example, A(1, 2, 3)).
Note that only constants can be specified for array indices (no variables
or operators).
- Reference modification (for example, A(1:2)).
Note that reference modification is not allowed for group names. Also,
only constants can be specified for the reference modification begin
and length values (no variables or operators).
Note: - Relational operators are allowed.
- The USAGE clause with the INDEXED phrase
defines an index data item. The index data item always shows the offset,
regardless of the representation. For example, if IDM is
a data item with a USAGE index for a one-dimensional
table whose elements are two bytes wide and IDM is
set to reference the third element in the table, the value shown by
the debugger (that is, the value in storage) would be 4.
The INDEXED
BY phrase of the OCCURS clause defines an index-name.
The value displayed for the index-name in decimal
representation is the element number. In hexadecimal representation,
it is the offset of that array element. For example, if INM is
specified in the INDEXED BY phrase for the same one-dimensional
table, the third element has the value 3 in decimal representation
and 4 in hexadecimal representation.
- Variably located data is treated in the debugger as though the OCCURS
DEPENDING ON object is its maximum possible value.
Constant: The constant can
be one of the following types:
- Fixed-point or floating-point constant
- A string constant, enclosed in double or single quotation marks
(for example, "string" or 'string')
- Hexadecimal constant (for example, X"0041014D").
Note that the number of bytes represented by the hexadecimal constant
must be equal to the number of bytes of the corresponding variable
in assignment or comparison.
Note: In a COBOL constant, the period is always used as the decimal
point (i.e., the DECIMAL-POINT IS COMMA clause is
ignored by the debugger). COBOL figurative constants are not supported
by the debugger.
Register: Any of
the processor registers that can be displayed in the Registers View.
In the case of conflicting names, program variable names take precedence
over register names.
Filename: The values
shown by the debugger for a file-name are organization,
access, and record length.