
IF and Conditions
9-10 User Reference
Connectivity Systems, Inc.—Copyright © 2006
Use Pursuant to Company Instructions
IF and Conditions
Description IF tests for conditions that you specify. IF can test the current condition
code, highest condition code, VSE cancel code, date, time, CPU,
partition, and global constant.
You can use IF to test multiple conditions using either the AND condition
or the OR condition. See “
Setting Values” in this chapter for additional
information.
When IF is used with GOTO, the branch occurs if the condition is true.
When IF is used on an EXEC, the step is executed only if the condition is
true. If the condition is false, BIM-EPIC bypasses the EXEC.
The IF parameter has three subparameters which must be separated by at
least one space. To test AND conditions, specify separate sets of
subparameters on the same IF parameter and separate them with commas.
To test OR conditions, use separate IF parameters.
When used with GOTO, IF is valid on OPTION and JMCL statements. IF
is also valid on EXEC statements, without GOTO. AND conditions are
valid on OPTION, EXEC, and JMCL statements. OR conditions are valid
on OPTION and JMCL statements only.
Syntax The following provides an example of an IF statement syntax.
IF=(type operand value [ ,type operand value, ... ] )
Parameters The following provides a description of the parameters you can use when
using IF and conditions.
For... Valid values are...
CC, HC, and DOSCC 1 to 999
PART 2 character partition ID
CPU 0 to 9, A to Z
DATE and TIME 2 to 8 characters
Gnnn 1 to 3 characters
Komentarze do niniejszej Instrukcji