
Conditions and IF JMCL Parameters
9-10 User Reference
DATE current date
TIME current time
Gnn global constant
operand specifies the kind of test.
Use... To test whether the input
data is...
EQ equal to value
NE not equal to value
GT greater than value
LT less than value
GE greater than or equal to value
LE less than or equal to value
value specifies the constant to be used in the comparison.
Global constants are set with the SETG JMCL parameter. Identify the global constant you are
testing by specifying 01 through 15 for nn.
DOSCC values are decimal codes generated by VSE. For normal EOJ the code is 16. You
can check the DOSCC across job boundaries.
The CPU ID is the same number generated when you use CPU independence—that is, the last
digit specified for the CPUIDS configuration option.
In partition comparisons, only the EQ and NE operands are valid. For example IF=(PART
EQ BG) is valid. IF=(PART LE BG) is invalid.
Date is specified in yy-mm-dd format. Time is specified in hh-mm-ss format. If you wish,
you can test only a portion of the date and time. To do so, supply only the portion you wish to
test. Supply asterisks (*) as filler for beginning parts of the field. For example, to test for the
first day of the month, code IF=(DATE EQ **-**-01). To test for January, code IF=(DATE
EQ **-01).
* JMCL IF=(HC EQ 99),GOTO=JOBEND
* JMCL IF=(PART NE BG,CPU EQ 5),GOTO=BGSTEP
// EXEC PHASE1 IF=(CC LT 16)
The first statement tests the highest condition code. If the highest condition code is 99, BIM-
EPIC branches to the end of the job. The second statement uses an "AND" condition. If the
job is not running in the BG partition but is running on CPU 5, a branch is made to BGSTEP.
If neither of these tests is true, the job continues with the EXEC statement. However,
PHASE1 only executes if the current condition code is less than 16.
Example
Comentarios a estos manuales