You can specify conditions in the procedure statements as follows:
COND=
{
variable-name_1{ EQ | NE | LT | LE | GT | GE }value
| variable-name_1{ == | != | < | <= | > | >= }variable-name_2
}
A condition is initiated at procedure level by means of COND= or C=. The condition itself consists of three strings, each separated by a blank:
The first string is the name of a predefined or declared variable.
The second string is the relational operator (EQ, NE, LT, LE, GT, GE, ==, !=, <, <=, >, >=).
The third string is a value or the name of a variable. The type of a value must fit the type of variable specified in the first string.
With the relational operators ==, !=, <, <=, > and >= the third string is interpreted as the name of a variable, which must fit the type of variable in the first string.
In the case of conditions with the predefined variables RCODE and STATUSCODE it must be borne in mind that strings are concerned, not numbers. Consequently leading zeros must also be specified explicitly.
The conditions are evaluated when the corresponding procedure statement is executed.