Deletion of overrides

 

When a program that has been called returns control to the calling program, the system deletes any overrides specified in the call level of the called program.

This does not include overrides that are scoped to the activation group level or the job level. Overrides that are scoped to the activation group level remain in effect until they are explicitly deleted, replaced, or until the activation group in which they are specified is deleted. Overrides that are scoped to the job level remain in effect until they are explicitly deleted, replaced, or until the job in which they are specified ends.

When control is transferred to another program (TFRCTL command), the overrides in the call level of the transferring program are not deleted.

You can also explicitly delete overrides on your system by using the Delete Override (DLTOVR) command. The DLTOVR command can delete overrides that are scoped to the call level, activation group level, or the job level. To delete overrides that are scoped to the activation group level, you do not need to specify a value for the OVRSCOPE parameter because OVRSCOPE(*ACTGRPDFN) is the default. To delete overrides that are scoped to the job level, specify OVRSCOPE(*JOB) on the DLTOVR command.

To identify an override, use the file name that is specified on the FILE parameter of the override command. You can delete all overrides at the current level (call level, activation group level, or job level) by specifying value *ALL for the FILE parameter.

 

Parent topic:

Overrides

 

Related concepts


Scenario: Overrides to the same file at the same call level