Owning and deleting name/token pairs
Name/token pairs created by a program are automatically deleted by the system. The level of the name/token pair determines when the system deletes the pair.
Note: The words job step in this topic refers to the cross
memory resource owning (CMRO) task. While the CMRO task is generally
the main job step task, at times it may be either the initiator task
or started task control task (such as between jobs).
- Task-level pairs are owned by the task that created them and are deleted when the owning task terminates.
- Home-address-space-level name/token pairs are owned by the job step task of the home address space that created them. These pairs are deleted when the job step task, rather than the creating task, in the address space terminates; that is, home-level pairs created by subtasks of a job step task are not automatically deleted when the subtask terminates.
- Primary-address-space-level name/token pairs are owned by the job step task of the primary address space that created them. These pairs are deleted when the job step task, rather than the creating task, in the address space terminates; that is, primary-level pairs created by subtasks of a job step task are not automatically deleted when the subtask terminates.
- System-level name/token pairs are owned by the job step task of
the home address space that created them. If the persist option is
specified as zero when the pair is created, the pair is deleted when
the owning job step task in the home address space terminates. If
the persist parameter is specified as one when the pair is created,
the pair is not deleted when the owning job step task in the home
address space terminates. The user must explicitly delete the pair
when the pair is no longer needed. Note: Name/token pairs do not persist when a system terminates and is restarted.