Previous Topic: TASK Statement UsageNext Topic: TCP/IP Statement—Defines TCP/IP Runtime Environment


Example: TASK Statements

Adding a TCF Task

The following statement directs the system generation compiler to add task IDDTCF, to run under TCF, to the data dictionary:

ADD TASK IDDTCF
    EXTERNAL
    INVOKES PROGRAM IDMSDDDC
    PRIORITY IS 65
    INPUT
    LOCATION IS ANY
    RESOURCE TIMEOUT
       INTERVAL IS SYSTEM
       PROGRAM IS SYSTEM
    SAVE
    TCF TASK IS TCF
    PRODUCT CODE IS IDD.

Adding a User Task

The following statement directs the system generation compiler to add task ABC to the data dictionary:

ADD TASK ABC
    EXTERNAL
    INVOKES PROGRAM ABCPROG
    PRIORITY IS 60
    INPUT
    LOCATION IS ANY
    RESOURCE TIMEOUT
       INTERVAL IS SYSTEM
       PROGRAM IS SYSTEM
    SAVE

Modifying a Task

The following statement modifies task ABC by changing its priority class to 32:

MODIFY TASK ABC
   PRIORITY IS 32.

Deleting a Task

The following statement deletes task ABC:

DELETE TASK ABC.