── INITIALIZE ── ( ── <task identifier> ── ) ──────────────────────────┤
Explanation
The INITIALIZE statement causes the STATUS attribute of the specified task variable to be assigned a value of NEVERUSED and causes all other task attributes and file equations associated with the task variable to be returned to their default values.
This statement should be used in cases where successive task initiation statements in a job make use of the same task variable.
Examples
The following example illustrates such a situation:
?BEGIN JOB EXAMPLE; TASK T (PRIORITY=80); % Declares task variable with PRIORITY=80 RUN X [T]; % Runs program X with PRIORITY=80 INITIALIZE (T); % Reinitializes task variable RUN Y [T]; % Runs program Y with default priority ?END JOB.
The INITIALIZE statement has the same effect as using a task assignment statement to set the STATUS attribute of a task variable to NEVERUSED, as in the following example:
T(STATUS=NEVERUSED); % T is a task variable
Refer to Using Task Variables for further information about task variables.