Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
The system ignores any attributes that are specified on overrides of a different file<br />
type than the final file type. The parameters SPOOL, SHARE, and SECURE are<br />
exceptions to this rule. The system accepts the parameters from any override that<br />
is applied to the file, regardless of device type.<br />
Planning for redirecting files<br />
Table 8 summarizes valid file redirections.<br />
To use this chart, identify the file type that you want to override in the<br />
FROM-FILE columns, and the file type that you want to override in the TO-FILE<br />
column. The intersection specifies an I or O or both; this means that the<br />
substitution is valid for these two file types when used as input files or as output<br />
files.<br />
For instance, you can override a diskette output file with a tape output file, and a<br />
diskette input file with a tape input file. The chart refers to file type substitutions<br />
only. That is, you cannot change the program function by overriding an input file<br />
with an output file.<br />
Table 8. <strong>File</strong> Redirections<br />
From-<strong>File</strong><br />
intersystem<br />
communications<br />
function<br />
To-<strong>File</strong> Printer (ICF) Dis- kette Display Data- base Tape<br />
Printer O* O O O O O<br />
ICF O I/OOI OI I/OOI OI OI<br />
Diskette O O I O I O I O I O I<br />
Display O I/O O I O I I/O O I O I O I<br />
Database O O I O I O I O I O I<br />
Tape<br />
:<br />
O O I O I O I O I O I<br />
v I=input file O=output file I/O=input/output file<br />
v *=redirection to a different type of printer<br />
Redirecting files: tips<br />
Some redirection combinations present special problems due to the specific<br />
characteristics of the device. In particular:<br />
v You should not redirect save files.<br />
v You can redirect nonsequentially processed database files only to another<br />
database file or a DDM file.<br />
v You can redirect Display files and ICF files that use multiple devices (MAXDEV<br />
or MAXPGMDEV > 1) only to a display file or ICF file.<br />
v Redirecting a display file to any other file type, or another file type to a display<br />
file, requires that the program be recompiled with the override active if there are<br />
any input-only or output-only fields. This is necessary because the display file<br />
omits these fields from the record buffer in which it does not use them, but<br />
other file types do not.<br />
Chapter 3. Using overrides 65