Previous Topic: AUTOTASK Statement UsageNext Topic: DEFAULT PROGRAM Statement—Assign Default Values


Example: AUTOTASK Statements

Adding an Autotask

The following statement defines task code ABC as an autotask that will execute in response to a SHUTDOWN command:

ADD AUTOTASK ABC
    INVOKED AT SHUTDOWN.

Modifying an Autotask

The following statement modifies autotask ABC to execute before user signon as well as at shutdown. The specification PREEMPT indicates that, during startup, autotask ABC will execute to completion before any other user task is executed:

MODIFY AUTOTASK ABC
       INVOKED AT BOTH PREEMPT.

Deleting an Autotask

The following statement deletes autotask ABC:

DELETE AUTOTASK ABC.