ADCNS – Conditional dependency

Use the ADCNS statement to define a conditional dependency for an operation. You must set at least one ADCNS statement for each ADCNC statement, matched by the CONDID keyword.

Note:
  1. Workload Automation Programming Language does not require an equivalent to the following keywords:
    • CONDDEPCONDID is inherited from the preceding ADCNC statement.
    • CONDDEPDEPTYPE is determined from the setting of PREADID.
  2. The ADCNS statement is available only starting from HCL Workload Automation for Z V8.5, or later.
Table 1. Keywords for ADCNS
Keyword Description
CONDID The CONDID keyword should be set to the same value as in the ADCNC statement to which this belongs.
PREADID If the predecessor operation is in a different application from the one being built, or is in a different occurrence of the same application, you must identify the application ID with this keyword. If you use DBCS characters, you must enter them as a quoted string started by a shift-out and ended by a shift-in.
PRECSEL Specifies on which basis a matching predecessor is selected:
C
Closest preceding. The matching predecessor is the one with the nearest preceding input arrival time. This is the default.
S
Same scheduled date. The matching predecessor is the one with the nearest input arrival time within the same day of the operation (occurrence) under consideration. A matching predecessor is first searched before the IA time of the operation. Then, if not found, it is searched after the IA time of the operation.
A
Within an absolute interval. The matching predecessor is the one with the closest input arrival time in the specified interval. The interval boundaries are specified by a time and a number of days before or after the IA time of the operation (occurrence). The interval can be timed entirely before, entirely after, or across the IA time of the operation (occurrence).

If you select this option, the ADCIV statement must follow ADCNS with the specification of the interval boundaries.

R
Within a relative interval. The matching predecessor is the one with the closest input arrival time in the specified interval. The interval boundaries are calculated using an offset expressed in hours and minutes before or after the IA time of the operation (occurrence). The interval can be timed entirely before, entirely after, or across the IA time of the operation (occurrence).

If you select this option, the ADCIV statement must follow ADCNS with the specification of the interval boundaries.

Note: The PRECSEL keyword is available only starting from HCL Workload Automation for Z V9.1, or later.
PREOPNO Operation number of conditional predecessor.
PROCSTEP Proc Step name for a step dependency.
STEPNAME Job Step name for a step dependency.
CHECK What element to check:
ST
Check the status
RC
Check the return code
LOGIC What logic to use when comparing values:
EQ
Equal to
GE
Greater than or equal to
GT
Greater than
LE
Less than or equal to
LT
Less than
NE
Not equal to
RG
Range
STATUS The value of operation status to use in the comparison.
RC1 The return code to use in the comparison. When LOGIC(RG) is used, RC1 is the lower limit of the range.
RC2 When LOGIC(RG) is used, RC2 is the upper limit of the range.