DELRES

The DELRES instruction deletes one or more special resources from an operation in the current plan.

Keywords used in the Delres Instructione describes the keywords that can be used.

Table 1. Keywords used in the Delres Instruction
Keyword Requirement Multiple Values Allowed Description Abbreviation Format
APPL() Required No The name of the application to be modified.
OPNO() Optional Yes The number of the operation to be modified. 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¹ 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 occurrences found in the current plan, depending on the SORT parameter specified in the EQQYRPRM member or in the INIT instruction. IA() cannot be used with IADATE() or IATIME(). YYMMDDHHMM
EXCLRES() Optional Yes The special resource that must not be deleted. ERES
RESNAME() Optional No The special resource to be deleted. Do not include parentheses in the resource name. RN
Note: ¹ Mutually exclusive with another keyword.
Examples:
DELRES APPL(TEST01)
Deletes all the special resources from the operations of the occurrence TEST01 with the latest or earliest input arrival date and time, depending on the SORT parameter specified in the EQQYRPRM member or in the INIT instruction
DELRES APPL(TEST01) IAD(=) OP(10)
Deletes all the special resources from operation 10 of the occurrence TEST01 with the input arrival date corresponding to the current date and with the input arrival time corresponding to the default input arrival time, DEFIAT
DELRES APPL(TEST01) IA(=) OP(10) ERES(PROVA.SR1)
Deletes all the special resources, except for special resource PROVA.SR1, from operation 10 of the occurrence TEST01, with the input arrival date and time corresponding to the current date and time.
The DELRES instruction returns one of the following return codes:
RESULT = 0
Special resource deleted.
RESULT = 4
Operation not found in the current plan.
RESULT = 8
Invalid instruction or PIF problem. Refer to the error messages.