File Management - IBM
File Management - IBM File Management - IBM
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
- Page 1: AS/400e File Management Version 4
- Page 4 and 5: © Copyright International Business
- Page 6 and 7: | | | | | Special considerations fo
- Page 8 and 9: vi File Management V4R5
- Page 10 and 11: viii File Management V4R5
- Page 12 and 13: 2 File Management V4R5 v Distribute
- Page 14 and 15: Table 1. File Types and Their Main
- Page 16 and 17: Table 2. High-Level Languages and T
- Page 18 and 19: | | Table 3. High-Level Languages a
- Page 20 and 21: Add Add new records to the file. Up
- Page 22 and 23: | Sharing files 12 File Management
- Page 24 and 25: 14 File Management V4R5 For example
- Page 26 and 27: 16 File Management V4R5 File resour
- Page 28 and 29: 18 File Management V4R5 v “Displa
- Page 30 and 31: Application 1 Application 2 Applica
- Page 32 and 33: 22 File Management V4R5 LVLCHK(*NO)
- Page 34 and 35: The open feedback area also contain
- Page 36 and 37: 26 File Management V4R5 Table 6. OS
- Page 38 and 39: 28 File Management V4R5 Table 7. Ma
- Page 40 and 41: 30 File Management V4R5 Depending o
- Page 42 and 43: 32 File Management V4R5
- Page 46 and 47: 36 File Management V4R5 output queu
- Page 48 and 49: 38 File Management V4R5 The followi
- Page 50 and 51: 40 File Management V4R5 application
- Page 52 and 53: 42 File Management V4R5 activation
- Page 54 and 55: Program A (in user default activati
- Page 56 and 57: 46 File Management V4R5 Override 1
- Page 58 and 59: 48 File Management V4R5 same call l
- Page 60 and 61: 50 File Management V4R5 Program A .
- Page 62 and 63: 52 File Management V4R5 Applying OV
- Page 64 and 65: Deleting overrides 54 File Manageme
- Page 66 and 67: Program A (in user default activati
- Page 68 and 69: 58 File Management V4R5 Displaying
- Page 70 and 71: 60 File Management V4R5 Command 7 d
- Page 72 and 73: 62 File Management V4R5 Display All
- Page 74 and 75: Redirecting files 64 File Managemen
- Page 76 and 77: 66 File Management V4R5 Default act
- Page 78 and 79: 68 File Management V4R5 From Databa
- Page 80 and 81: Copying files: overview 70 File Man
- Page 82 and 83: 72 File Management V4R5 Table 9. Co
- Page 84 and 85: Table 10. Summary of Copy Functions
- Page 86 and 87: 76 File Management V4R5 Copying fil
- Page 88 and 89: Resending copy file completion mess
- Page 90 and 91: 80 File Management V4R5 from-file m
- Page 92 and 93: CPYSRCF command support for CCSIDs
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.