MPE/iX Commands Reference Manual (32650-90877)

Chapter 7 243
Command List V
Commands HEADOFF thru LISTF
showme
*****
If the UDC MYUDC (which is not the name of any MPE/iX command) contains the NOHELP
option, then the Help facility displays an error.
Related Information
Commands None
Manuals System Startup, Configuration, and Shutdown Reference Manual
IF
Used to control the execution sequence of a job, UDC, or command file. (Native Mode)
Syntax
IF
expression
[THEN]
Parameters
expression
Logical expression, consisting of operands and relational operators. The
operators listed in Table 7-1. on page 243 may be incorporated in
expression
.
The allowed operands are any variable, integer, string, or Boolean constants, and the
MPE/iX reserved words are WARN, FATAL, SYSTEM, and OK.
Compound logical expressions can be formed using the AND, NOT, XOR, and OR logical
operators, and nested within parentheses.
The THEN keyword is optional. It may be used or omitted and has no effect on the results.
Table 7-1. Logical Operators - The IF Command
Logical operators: AND, OR, XOR, NOT
Boolean functions and values: BOUND, TRUE, FALSE, ALPHA, ALPHANUM,
NUMERIC, ODD
Comparison operators: =, <>, <, >, <=, >=
Bit manipulation operators: LSL, LSR, CSR, CSL, BAND, BOR, BXOR, BNOT
Arithmetic operators: MOD, ABS, * , / , + , -, ^ (exponentiation)
Functions returning strings: CHR, DWNS, UPS, HEX, OCTAL, INPUT, LFT, RHT, RPT,
LTRIM, RTRIM, STS
Functions returning integers: ABS, LEN, MAX, MIN, ORD, POS, TYPEOF
Other functions: FINFO, SETVAR