Recognizing commands that ignore or restrict overrides
Here is a list of commands that ignore overrides, allow overrides, and have restrictions on overrides.
Commands that ignore overrides
The following commonly used commands ignore overrides entirely:
- Allocate Object (ALCOBJ)
- Change Object Owner (CHGOBJOWN)
- Copy DBCS Font Table (CPYIGCTBL)
- Create Duplicate Object (CRTDUPOBJ)
- Create Tape File (CRTTAPF)
- Deallocate Object (DLCOBJ)
- Display File Description (DSPFD)
- Display File Field Description (DSPFFD)
- Edit Object Authority (EDTOBJAUT)
- Grant Object Authority (GRTOBJAUT)
- Move Object (MOVOBJ)
- Rename Object (RNMOBJ)
The system does not apply overrides to any system files that you open as part of an end-of-routing step or end-of-job processing. For example, you cannot specify overrides for the job log file. In some cases, when override something in a system file, you might be able to change it through a command other than an override command. For example, to change the output queue for a job log, the output queue can be changed before sign-off using the OUTQ parameter on the Change Job (CHGJOB) command to specify the name of the output queue for the job. If the printer file for the job log contains the value *JOB for the output queue, the output queue is the one specified for the job. The save and restore commands open the tape file with SECURE(*YES) so that the tape file overrides will be ignored.
Commands that allow overrides for SRCFILE and SRCMBR
The following commands allow overrides for the SRCFILE and SRCMBR parameters only:
- Create Command (CRTCMD)
- Create ICF File (CRTICFF)
- Create Display File (CRTDSPF)
- Create Logical File (CRTLF)
- Create Physical File (CRTPF)
- Create Printer File (CRTPRTF)
- Create Source Physical File (CRTSRCPF)
- Create Table (CRTTBL)
- Create Program (CRTPGM)
(All create program commands. These commands also use overrides to determine which file will be opened by a compiled program. See the Database file management topic collection for more information about applying overrides when compiling a program.)
Commands that allow overrides but prevent changing MBR to *ALL
The following commands allow overrides, but do not allow changing the MBR to *ALL:
Commands with restrictions on overrides
The following commands do not allow overrides to be applied to the display files they use. Overrides to the printer files they use should not change the file type or the file name. Various restrictions are placed on changes that might be made to printer files used by these commands, but the system cannot guarantee that all combinations of possible specifications will produce an acceptable report.
Display Tape (DSPTAP) The display command that displays information about a file do not allow overrides to that file. Dump Tape (DMPTAP) In addition to the preceding limitations, this command does not allow overrides to the file it dumps.
Parent topic:
File redirection
Related concepts
File redirection