Command reference / spool

DLTOVR

Delete Override

Removes one or more file overrides, including message file overrides, that were set earlier in the same call level. Only overrides in the call level where the command runs are affected, and removed overrides no longer apply to later use of the file. A file override is created by an override file command.

Allowed environments: *ALL. Positional parameters: 1.

Restrictions

Parameters

FILE Overridden file

Names the overridden files in the call level whose overrides should be removed.

Type
*NAME
Required
Yes
Length
10
List limit
50
Case
Uppercase

Suggested / special values: *PRTF, *ALL

*ALL
Removes every file override that exists in the call level where the command is entered.
*PRTF
Removes the *PRTF file override that exists in the call level where the command is entered.

LVL Call level

Sets the call level of the file overrides to delete. Call levels correspond one-to-one with the call stack entries shown by the Work with Job (WRKJOB) command.

Type
*CHAR
Required
No
Default
*ACTGRPDFN
Length
10
Case
Uppercase

Allowed values: *ACTGRPDFN, *, *JOB

*ACTGRPDFN
The call level is derived from the activation group of the calling program. In the default activation group it matches the calling program's call level; otherwise it matches the calling program's activation group.
*
Uses the call level of the program that called the DLTOVR command processing program. Through QCMDEXC, it is the same level as the caller of QCMDEXC.
*JOB
Deletes only the file overrides scoped to the job, meaning those with OVRSCOPE(*JOB).

Examples

DLTOVR FILE(A C)

Deletes only the file overrides that affect files A and C.

DLTOVR FILE(*ALL)

Deletes all file overrides in the call level, which in this example is the override for file E from the third command.

IBM command documentation

Generated from os/cl/catalog/DLTOVR.json and os/cl/help/DLTOVR.json.