File Management - IBM

File Management - IBM File Management - IBM

as400bks.rochester.ibm.com
from as400bks.rochester.ibm.com More from this publisher
30.06.2013 Views

34 File Management V4R5 Handling overrides for message files is different in some respects from handling overrides for other files. You can override only the name of the message file, and not the attributes. For more information on message handling, refer to the CL Programming book. Benefits of using overrides Overrides are particularly useful for making minor changes to the way a program functions or for selecting the data on which it operates without having to recompile the program. Their principal value is in allowing you to use general purpose programs in a wider variety of circumstances. Examples of items where you can use overrides include the following: v Changing the name of the file to process v Selecting the database file member to process v Indicating whether to spool output v Directing output to a different tape unit v Changing printer characteristics such as lines per inch and number of copies v Selecting the remote location to use with an ICF file v Changing the characteristics of a communications session Summary of the override commands You can process override functions for files by using the following CL commands: DLTOVR The Delete Override command deletes one or more file overrides, including overrides for message files, that were previously specified in a call level. DSPOVR The Display Override command displays file overrides at any active call level, activation group level, or job level for a job. OVRDBF The Override with Database File command iverrides (replaces) the database file named in the program, overrides certain parameters of a database file that is used by the program, or overrides the file and certain parameters of the file to be processed. OVRDKTF The Override with Diskette File command overrides (replaces) the diskette file named in the program, overrides certain parameters of a diskette file that is used by the program, or overrides the file and certain parameters of the file to be processed. OVRDSPF The Override with Display File command overrides (replaces) the display file named in the program, overrides certain parameters of a display file that is used by the program, or overrides the file and certain parameters of the file to be processed. OVRICFF The Override with Intersystem Communications Function File command overrides the file that is named in the program, and overrides certain parameters of the processed file.

OVRMSGF The Override with Message File command overrides a message file that is used in a program. The rules for applying the overrides in this command are different from the other override commands. For more information on overriding message files, see the CL Programming book. OVRPRTF The Override with Printer File command overrides (replaces) the printer file named in the program, overrides certain parameters of a printer file that is used by the program, or overrides the file and certain parameters of the file to be processed. OVRSAVF The Override with Save File command overrides (replaces) the file named in the program, overrides certain attributes of a file that is used by the program, or overrides the file and certain attributes of the file to be processed. OVRTAPF The Override with Tape File command overrides (replaces) the file named in the program, overrides certain attributes of a file that is used by the program, or overrides the file and certain attributes of the file to be processed. Effect of overrides on some commands The following commonly used commands ignore overrides entirely: ADDLFM DSPFD ADDPFM DSPFFD ALCOBJ DSPJRN APYJRNCHG EDTOBJAUT CHGOBJOWN EDTDLOAUT CHGPTR ENDJRNPF CHGSBSD GRTOBJAUT CHGXXXF (all change file commands) INZPFM CLRPFM MOVOBJ CLRSAVF RGZPFM CPYIGCTBL RMVJRNCHG CRTDKTF RMVM CRTDUPOBJ RNMOBJ CRTAUTHLR RTVMBRD CRTSBSD RVKOBJAUT CRTTAPF SBMDBJOB DLCOBJ SIGNOFF DLTF STRDBRDR DLTAUTHLR STRJRNPF DSPDBR Note: Save operations and restore operations ignore all file overrides that are related to the respective media (tape, diskette, save file). The system does not apply overrides to any system files that are opened 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 you need to override something in a system file, you may 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 Chapter 3. Using overrides 35

34 <strong>File</strong> <strong>Management</strong> V4R5<br />

Handling overrides for message files is different in some respects from handling<br />

overrides for other files. You can override only the name of the message file, and<br />

not the attributes. For more information on message handling, refer to the CL<br />

Programming book.<br />

Benefits of using overrides<br />

Overrides are particularly useful for making minor changes to the way a program<br />

functions or for selecting the data on which it operates without having to<br />

recompile the program. Their principal value is in allowing you to use general<br />

purpose programs in a wider variety of circumstances. Examples of items where<br />

you can use overrides include the following:<br />

v Changing the name of the file to process<br />

v Selecting the database file member to process<br />

v Indicating whether to spool output<br />

v Directing output to a different tape unit<br />

v Changing printer characteristics such as lines per inch and number of copies<br />

v Selecting the remote location to use with an ICF file<br />

v Changing the characteristics of a communications session<br />

Summary of the override commands<br />

You can process override functions for files by using the following CL commands:<br />

DLTOVR<br />

The Delete Override command deletes one or more file overrides,<br />

including overrides for message files, that were previously specified in a<br />

call level.<br />

DSPOVR<br />

The Display Override command displays file overrides at any active call<br />

level, activation group level, or job level for a job.<br />

OVRDBF<br />

The Override with Database <strong>File</strong> command iverrides (replaces) the<br />

database file named in the program, overrides certain parameters of a<br />

database file that is used by the program, or overrides the file and certain<br />

parameters of the file to be processed.<br />

OVRDKTF<br />

The Override with Diskette <strong>File</strong> command overrides (replaces) the diskette<br />

file named in the program, overrides certain parameters of a diskette file<br />

that is used by the program, or overrides the file and certain parameters of<br />

the file to be processed.<br />

OVRDSPF<br />

The Override with Display <strong>File</strong> command overrides (replaces) the display<br />

file named in the program, overrides certain parameters of a display file<br />

that is used by the program, or overrides the file and certain parameters of<br />

the file to be processed.<br />

OVRICFF<br />

The Override with Intersystem Communications Function <strong>File</strong> command<br />

overrides the file that is named in the program, and overrides certain<br />

parameters of the processed file.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!