FORM.CALC, FORM.CONDITIONS, and Column Definition use expressions written in REXX,which QMF does not supoport in CICS.
Each operator (except the prefix operator) acts on two terms. These terms can be symbols, functions, or subexpressions in parentheses. Each prefix operator acts on the term or subexpression that follows it. The following operators are allowed in QMF expressions:
REXX provides other concatenation operators. See the TSO/E Procedures Language MVS/REXX Reference or the Virtual Machine/Enterprise Systems Architecture REXX/VM Reference for more information.
Expression evaluation is from left to right. Modify this by using parentheses and operator priority.
Use parentheses to clarify the meaning when the priority of operators is not obvious. An expression in parentheses is evaluated first.
When the sequence:
term1 operator1 term2 operator2 term3 ...
is encountered, and operator2 has a higher priority than operator1, the expression (term2 operator2 term3 ...) is evaluated first, applying the same rule repeatedly, as necessary.
For example, * (multiply) has a higher priority than + (add), so 3 +2*5 evaluates to 13, rather than 25, which results if strict left-to-right evaluation occurred.
The order of priority of the operators (from highest to lowest):
The & and && operators must be followed by a blank in calculation expressions to differentiate them from substitution variables.
For operators of equal priority (the multiply and divide operators, for example), the left-to-right rule prevails.
The only difference between these priorities and conventional algebra is that the prefix minus operator has a higher priority than the exponential operator. Thus -3**2 evaluates to 9, not -9.
[ Previous Page | Next Page | Contents | Index ]