COBOL expressions supported

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:

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:

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.


Feedback