Preparing a Task Variable for Reuse

As was stated earlier in this section, a task variable can be in use by only one process at a time. However, it is possible to reuse a task variable so long as the first process terminates before the task variable is used in another process initiation statement. The side effects that can result from such reuse of task variables are discussed in this guide.

Suffice it to say here that the side effects involve task attribute values that are retained from one use of the task variable to the next. To restore all the task attributes of the task variable to their default values, you can assign the STATUS task attribute a value of NEVERUSED. In WFL, you also have the option of using an INITIALIZE statement, which has the same effect as the STATUS assignment.