ADDCOND

The ADDCOND 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.

Keywords used in the Addcond Instruction describes the keywords that can be used.

Table 1. Keywords used in the Addcond Instruction
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.
COUNT() Optional No Condition counter. Use it to define the rule type:
  • 0 = All the condition dependencies in this condition must be true
  • n>0 = At least n out of the condition dependencies in this condition must be true
The default is 0.
DESC() Optional No Descriptive text.
CHKTYPE() Required No Check type. Possible values are:
RC
Return code
ST
Status
The default is ST.
LOG() Required No Logical operator:
  • GE = Greater than or equal to. Valid only for RC check type.
  • GT = Greater than. Valid only for RC check type.
  • LE = Less than or equal to. Valid only for RC check type.
  • LT = Less than. Valid only for RC check type.
  • EQ = Equal to.
  • NE = Not equal to. Use it to specify conditions on final statuses only.
  • RG = Range.
The default is EQ.
VALRC() Required No Return code, valid only for RC check type. The default is 0000.
VALRC2() Required 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() Required No Condition status, Valid only for ST check type. The default is C.
Note: ¹ Mutually exclusive with another keyword.
The ADDCOND 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.