COMPL

The COMPL instruction completes occurrences or operations within an occurrence in the current plan.

For a description of the keywords that can be used, see Keywords used in the Compl Instruction.

Table 1. Keywords used in the Compl Instruction
Keyword Requirement Multiple Values Allowed Description Abbreviation Format
APPL() Required No The name of the application to be completed.
OPNO() Optional Yes The number of the operation to be completed. If OPNO() is specified then COMPL will complete the operations and not the occurrence. If the operation is the last one in the occurrence, then the occurrence will be completed. 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
Note: ¹ Mutually exclusive with another keyword.
Note: if you do not specify IADATE(), IATIME(), or IA(), OCL considers only the application occurrences in the current plan that do not have Complete status.
Examples:
COMPL APPL(TEST01,TEST02,TEST03)
Completes the occurrences TEST01, TEST02, and TEST03 with the earliest or latest input arrival date and time, depending on the SORT parameter
COMPL APPL(TEST01) IAD(=)
Completes the occurrence TEST01 with the input arrival date corresponding to the current date and with the default input arrival time
COMPL APPL(TEST01,TEST02,TEST03) IA(=)
Completes the occurrences TEST01, TEST02 and TEST03 with the input arrival date and time corresponding to the current date and time
COMPL APPL(TEST02) IAD(970709) OP(10,40)
Completes operations 10 and 40 of the occurrence TEST02 with the input arrival date 970709 and with the default input arrival time
The COMPL instruction returns one of the following return codes:
RESULT = 0
Occurrences or operations completed
RESULT = 4
Occurrences or operations not found
RESULT = 8
Invalid instruction or PIF problem. See the error messages.