A Control-M/Analyzer operand can be a character string, numeric constant, or variable.
Table 146 Control-M/Analyzer Operands
Operand  | 
Description  | 
|---|---|
Character String  | 
Any string between apostrophes (single quotes); for example, ‘This is a string’. Do not use an apostrophe within a string. Use two consecutive single quotes within a string to produce an apostrophe. Do not use double quotes; for example, "This is not a string". For more information, see Expression Delimiters.  | 
Numeric Constant  | 
Any decimal number. A negative sign (for example, –5, –5.01) can be specified.  | 
Variable  | 
Any Control-M/Analyzer Database, AutoEdit, Local, or System variable. An in-depth explanation of variables is provided in Control-M/Analyzer Variables.  | 
Table 147 Examples of Operands
Expression  | 
Evaluates to:  | 
|---|---|
5.0 = 5.0  | 
True  | 
5.0 GT 2.0  | 
True  | 
5.0 > 2.0  | 
True  | 
2.0 GT 5.0  | 
False  | 
‘ABC’ LT ‘XYZ’  | 
True  | 
5 GT 32  | 
False  | 
‘5’ GT ‘32’  | 
False  | 
‘5’ Ø\- = ‘32’  | 
True  | 
5 CGT 32  | 
True  | 
‘5’ CGT ‘32’  | 
True  | 
‘5’ GT 32  | 
False  | 
5 GT ‘32’  | 
False  | 
5 CGT 32 AND 5.0 LT 2.0  | 
False  | 
5 CGT 32 OR 5.0 LT 2.0  | 
True  | 
5 + 2  | 
7  | 
8 / 2  | 
4  | 
9 / 2  | 
4.5  | 
1 + 2 – 3 * (–4)  | 
15.0  | 
5.5 * SQRT(9)  | 
16.5  | 
(I + J) * 4 where I = 5.5, J = 4  | 
38.0  | 
(I + J) * 4 where I = 5.A, J = 4  | 
Error  | 
1 + 2 LE SQRT(9)  | 
True  | 
‘809’ GT ‘303’  | 
True  | 
809 GT 90  | 
True  | 
‘809’ GT ‘90’  | 
True  | 
809 CGT 90  | 
False  | 
809 CGT 90 AND 1 + 2 LE SQRT(9)  | 
False  | 
809 CGT 90 OR 1 + 2 LE SQRT(9)  | 
True  | 
Note: A numeric value surrounded by single quotes is treated as a numeric value when compared. A nonnumeric value surrounded by single quotes is treated as a string.
Parent Topic |