Usage notes for ONCE mode

ONCE mode is applied every time UNTIL or EVERY is not specified. It causes the ADD command to submit one occurrence of either a single application or every application in the Application Group.

The following keywords are applicable for ONCE mode:
ADD ADID(<adid>)|GROUPDEF(<groupdef>) [JCLVTAB(<table>)]
        [DEPRES(Y|N)]
        [IA(yymmddhhmm) | IADATE(yymmdd) IATIME(hhmm)]
        [FINDIA(Y|N)] [DLDAY(n)] [DLTIME(hhmm)]

The simplest example of the command is ADD ADID(MYAPPL), which adds a single occurrence of MYAPPL using the current time, or nearest available minute as the Input Arrival and lets HCL Workload Automation for Z determine the deadline using normal rules.

More complex versions of the command can be used in conjunction with HCL Workload Automation for Z relative date and time processing. In the following example, you set the Input Arrival to be 15 minutes from the current time and the deadline to be 30 minutes from the current time, automatically adjusting if midnight is within those timescales. Use of relative times for the IA keyword allows occurrences to be submitted, with time dependencies to run at a relative point in the future.
ADD GROUPDEF(MYGROUP) IA(+15) DLTIME(+30)

For consistency with OCL syntax, ADD GROUPDEF(MYGROUP) JCLVTAB(MYTABLE) DEPRES(Y) is identical to ADD GROUP(MYGROUP) VARTAB(MYTABLE) GDEPRES(Y).