Common syntax elements

You can use the following syntax elements to write a LangX COBOL expression:

ddd or ddd.ddd
A decimal constant, where ddd are valid decimal digits. For example: 145 or 12.72.
X"xxxxx"
A hexadecimal constant, where xxxx are valid hexadecimal digits. For example:
X"1F4C"
"cccc"
A non-numeric literal. For example:
"F$3"
symbol
A valid symbol used in the LangX COBOL source program. Examples:
LASTNAME
USERVAR8
12CENTS

z/OS® Debugger implicitly defines the _STORAGE symbol in all LangX COBOL programs as a symbol representing all of main memory. You can reference any area of memory by using the _STORAGE symbol with the substring notation defined in Operators that can be used in any expression. For example, _STORAGE(X"1FF3C"::4) references the four bytes of storage at address X"1FF3C". The substring notation used by the _STORAGE symbol specifies an actual address; therefore, to reference the first byte of storage, use a 0 instead of a 1 in the substring notation.

%symbol
A valid z/OS Debugger variable or built-in function. For example:
%ADDRESS
%HEX(expression)