Operators that can be used in any expression

Use the operators defined in this section to write LangX COBOL expressions.

+
Addition
-
Subtraction or prefix minus
*
Multiplication
Division
⁄⁄
Remainder
||
Concatenation (non-arithmetic operands only)
(...)
Parenthesis to control the order of operation, specify the subscript of an array, or select a substring.
symbol(subscript,subscript,...)
Parenthesis to specify a subscript or index for an array. Note that commas are required between subscript or index values. Blanks alone are not acceptable.
symbol(substrstart:substrend)
Parenthesis to select a substring of the bytes from substrstart to substrend from a character variable.
symbol(substrstart::substrlen)
Parenthesis to select a substring of substrlen bytes beginning at substrstart from a character variable.
For an array of character strings, these forms can be combined by using symbol(subscript,substrstart:substrend), or symbol(subscript,substrstart::substrlen).
LENGTH OF
Returns the length of a symbol. For example, LENGTH OF ABC returns the length of the symbol ABC.