ADDSIMP
The ADDSIMP instruction adds condition dependencies to an operation in the current plan. It modifies the current plan, depending on the date and time specified or defaulted to.
Keywords used in the Addsimp Instruction 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 | |
| PREOPNO() | Optional | No | The predecessor operation number. It defaults to the default predecessor operation number specified in the DEFPREOPNO parameter of the EQQYRPRM member. | PO | |
| PREAPPL() | Optional | No | The predecessor application name. It defaults to the application name specified in the application occurrence. | PA | |
| PREIADATE() | Optional | No | The predecessor application input arrival date. It defaults to the date specified in IADATE(). | PIAD | YYMMDD |
| PREIATIME() | Optional | No | The predecessor application time. It defaults to the time specified in IATIME(). | PIAT | HHMM |
| CONDID() | Optional | No | The number of the condition to be inserted. It defaults to the default condition id specified in the OCL program DEFCONDID. | ||
| CHKTYPE() | Optional | No | Check type. Possible values
are:
|
||
| LOG() | Optional | No | Logical operator:
|
||
| VALRC() | Optional | No | Return code, valid only for RC check type. The default is 0000. | ||
| VALRC2() | Optional | No | Return code, valid only for RC check type, as second boundary in a range expressed by the RG logical operator. The default is 9999. | ||
| VALST() | Optional | No | Condition status, Valid only for ST check type. The default is C. | ||
| Note: ¹
Mutually exclusive with another keyword. |
|||||
The ADDSIMP 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.