FORCE
The FORCE instruction forces the execution of an occurrence or of an operation within an occurrence in the current plan.
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 started. | ||
OPNO() | Optional | Yes | The number of the operation to be started. It defaults to the default operation number, DEFOPNO, specified in the OCL program.² | OP | |
IADATE() | Optional¹ | No | The input arrival date of the application occurrence. IADATE=() means 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 that is defined in the DEFIAT parameter of the EQQYRPRM member. IATIME() and IA() are mutually exclusive. | IAT | HHMM |
IA() | Optional¹ | N | 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 occurrences 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 | |
Notes:
|
Examples:
- FORCE APPL(TEST01)
- Forces the default operation, DEFOPNO, to start
- FORCE APPL(TEST01) OP(50)
- Forces operation 50 to start
- FORCE APPL(TEST01) IA(=)
- Forces operation 50 to start, using the current date and time as the input arrival date and time
- FORCE APPL(TEST01) IA(9707081800) OP(70)
- Forces operation 70 to start, using the input arrival date 970708 and the input arrival time 18.00
- FORCE APPL(TEST01) IAD(=)
- Forces the default operation, DEFOPNO, to start, using the current date as the input arrival date and the default input arrival time
- FORCE APPL(TEST01) IAD(&OYMD1)
- Forces the default operation, DEFOPNO, to start, using the input arrival date and time value of variable &OYMD1
- FORCE APPL(TEST01) IAD(970708) IAT(&OHHMM) OP(60)
- Forces operation 60 to start, using the input arrival date 970708 and the input arrival time value of variable &OHHMM
The FORCE instruction returns one of the following return codes:
- RESULT = 0
- Occurrence or operations status is started.
- RESULT = 4
- Occurrence found but operations not found in the current plan.
- RESULT = 8
- Occurrence not found in the current plan. Invalid instruction or PIF problem. Refer to the error messages.