MODCOND
The MODCOND instruction adds a condition to an operation in the current plan. It modifies the current plan, depending on the date and time specified or defaulted to.
Table 1 describes the keywords that can be used.
Keyword | Requirement | Multiple Values Allowed | Description | Abbreviation | Format |
---|---|---|---|---|---|
APPL() | Required | No | The name of the application to be modified. | ||
OPNO() | Optional | No | The number of the operation to be modified. It defaults to the default operation number specified in the OCL program DEFOPNO. | OP | |
IADATE() | Optional¹ | No | The input arrival date of the application occurrence. IADATE(=) assumes the current date. IADATE() and IA() are mutually exclusive. | IAD | YYMMDD |
IATIME() | Optional¹ | No | The input arrival time of the application occurrence. If IADATE(=) is specified, IATIME() assumes the default input arrival time specified in the DEFIAT parameter of the EQQYRPRM member. IATIME() and IA() are mutually exclusive. | IAT | HHMM |
IA() | Optional | No | The input arrival date and time of the application occurrence. IA(=) assumes the current date and time. It defaults to the earliest or latest input arrival date and time of the application occurrence. occurrence found in the current plan, depending on the SORT parameter specified in PARMLIB or in the INIT instruction. IA() cannot be used with IADATE() or IATIME(). | YYMMDDHHMM | |
CONDID() | Optional | No | The number of the condition to be inserted. It defaults to the default condition id specified in the OCL program DEFCONDID. | ||
COUNT() | Optional | No | Condition counter. Use it
to define the rule type:
|
||
DESC() | Optional | No | Descriptive text. | ||
Note: ¹
Mutually exclusive with another keyword. |
The MODCOND instruction returns one of the following return
codes:
- RESULT = 0
- Predecessor dependency definition added.
- RESULT = 4
- Predecessor dependency not found in the current plan.
- RESULT = 8
- Invalid instruction or PIF problem. Refer to the error messages.