Previous Topic: AUTOTASK Statement SyntaxNext Topic: AUTOTASK Statement Usage


AUTOTASK Statement Parameters

AUTotask task-code

Specifies the system will execute the task identified by task-code automatically.

Task-code must be a task code previously defined in the data dictionary with a TASK statement. The TASK statement should specify the NOINPUT option, which causes the task to execute as soon as it receives control.

INVoked at

Specifies when the system will execute the autotask.

STArtup

Specifies the system is to execute the task at startup, after initialization is complete, before any user tasks are executed.

STARTUP is the default when you omit the INVOKED AT parameter from the AUTOTASK statement.

BOTh

Specifies the system is to execute the task both at startup and at shutdown.

PREempt

Indicates the startup autotask will execute to completion before any user tasks are executed.

ABEnd

Directs the system to terminate abnormally if the startup autotask terminates abnormally.

NOAbend

Directs the system to continue processing if the startup autotask terminates abnormally.

NOABEND is the default when you specify neither ABEND nor NOABEND with the PREEMPT parameter of the AUTOTASK statement.

NOPreempt

Indicates the startup autotask can execute concurrently with user tasks.

NOPREEMPT is the default when you specify neither PREEMPT nor NOPREEMPT with the STARTUP or BOTH parameter of the AUTOTASK statement.

SHUtdown

Specifies the system is to execute the task during shutdown, after all other user tasks are terminated.