ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzatb_5.4.0.1/fredif.htm

258 lines
16 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-us" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="security" content="public" />
<meta name="Robots" content="index,follow" />
<meta http-equiv="PICS-Label" content='(PICS-1.1 "http://www.icra.org/ratingsv02.html" l gen true r (cz 1 lz 1 nz 1 oz 1 vz 1) "http://www.rsac.org/ratingsv01.html" l gen true r (n 0 s 0 v 0 l 0) "http://www.classify.org/safesurf/" l gen true r (SS~~000 1))' />
<meta name="DC.Type" content="concept" />
<meta name="DC.Title" content="Override files with different file types" />
<meta name="abstract" content="Use this information to learn how the system processes a file that is changed to a different type of file." />
<meta name="description" content="Use this information to learn how the system processes a file that is changed to a different type of file." />
<meta name="DC.Relation" scheme="URI" content="fredr.htm" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="fredif" />
<meta name="DC.Language" content="en-us" />
<!-- All rights reserved. Licensed Materials Property of IBM -->
<!-- US Government Users Restricted Rights -->
<!-- Use, duplication or disclosure restricted by -->
<!-- GSA ADP Schedule Contract with IBM Corp. -->
<link rel="stylesheet" type="text/css" href="./ibmdita.css" />
<link rel="stylesheet" type="text/css" href="./ic.css" />
<title>Override files with different file types</title>
</head>
<body id="fredif"><a name="fredif"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Override files with different file types</h1>
<div><p>Use this information to learn how the system processes a file that
is changed to a different type of file.</p>
<p>If you change to a different type of file, the system ignores the device-dependent
characteristics and reads or writes the records sequentially. The program
must specify some device parameters in the new device file or the override.
The system takes default parameters for others. This manual describes the
effect of specific redirection combinations later in this section.</p>
<p>The system ignores any attributes specified on overrides of a different
file type than the final file type. The parameters SPOOL, SHARE, OPNSCOPE,
and SECURE are exceptions
to this rule. The system accepts the above parameters from any override to
the file, regardless of device type.</p>
<p>Some redirection combinations present special problems due to the specific
characteristics of the device. In particular:</p>
<ul><li>Do not use file redirection for save files.</li>
<li>You can redirect nonsequentially processed database files only to another
database file or a DDM file.</li>
<li>You can redirect display files and ICF files that use multiple devices
(MAXDEV or MAXPGMDEV &gt; 1) only to a display file or ICF file.</li>
<li>Redirecting a display file to any other file type, or another file type
to a display file, requires: <ul><li>That the program be recompiled, with the override active, if there are
any input-only or output only fields.</li>
</ul>
This is necessary because the display file omits these unused fields
from the record buffer, but other file types do not.</li>
</ul>
<p><a href="#fredif__filer">Table 1</a> summarizes valid file redirections.</p>
<div class="tablenoborder"><a name="fredif__filer"><!-- --></a><table cellpadding="4" cellspacing="0" summary="" id="fredif__filer" width="100%" frame="hsides" border="1" rules="rows"><caption>Table 1. File redirections</caption><thead align="left"><tr><th rowspan="2" align="left" valign="bottom" width="15.370705244122965%" id="d0e110">To-file</th>
<th colspan="6" align="center" valign="bottom" id="d0e112">From-file</th>
</tr>
<tr><th align="left" valign="bottom" width="13.381555153707053%" id="d0e115">Printer</th>
<th align="left" valign="bottom" width="14.10488245931284%" id="d0e117">ICF</th>
<th align="left" valign="bottom" width="14.466546112115733%" id="d0e119">Diskette</th>
<th align="left" valign="bottom" width="14.10488245931284%" id="d0e121">Display</th>
<th align="left" valign="bottom" width="14.466546112115733%" id="d0e123">Database</th>
<th align="left" valign="bottom" width="14.10488245931284%" id="d0e125">Tape</th>
</tr>
</thead>
<tbody><tr><td align="left" valign="top" width="15.370705244122965%" headers="d0e110 ">Printer</td>
<td align="center" valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">O*</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e117 ">O</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">O</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">O</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">O</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">O</td>
</tr>
<tr><td rowspan="3" align="left" valign="top" width="15.370705244122965%" headers="d0e110 ">ICF</td>
<td align="center" valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e117 ">I/O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">I/O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">  </td>
</tr>
<tr><td align="center" valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">O</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e117 ">O</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">O</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">O</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">O</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">O</td>
</tr>
<tr><td valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">&nbsp;</td>
<td align="center" valign="top" headers="d0e112 d0e117 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">I</td>
</tr>
<tr><td rowspan="2" align="left" valign="top" width="15.370705244122965%" headers="d0e110 ">Diskette  </td>
<td align="center" valign="top" width="13.381555153707053%" headers="d0e112 d0e115 "> O  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e117 "> O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 "> O </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 "> O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 "> O </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 "> O </td>
</tr>
<tr><td valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">&nbsp;</td>
<td align="center" valign="top" headers="d0e112 d0e117 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">I</td>
</tr>
<tr><td rowspan="3" align="left" valign="top" width="15.370705244122965%" headers="d0e110 ">Display    </td>
<td align="center" valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e117 ">I/O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">I/O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">  </td>
</tr>
<tr><td align="center" valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">O</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e117 ">O</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">O</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">O</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">O</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">O</td>
</tr>
<tr><td valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">&nbsp;</td>
<td align="center" valign="top" headers="d0e112 d0e117 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">I</td>
</tr>
<tr><td rowspan="2" align="left" valign="top" width="15.370705244122965%" headers="d0e110 ">Database  </td>
<td align="center" valign="top" width="13.381555153707053%" headers="d0e112 d0e115 "> O  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e117 "> O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 "> O </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 "> O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 "> O </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 "> O </td>
</tr>
<tr><td valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">&nbsp;</td>
<td align="center" valign="top" headers="d0e112 d0e117 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">I</td>
</tr>
<tr><td rowspan="2" align="left" valign="top" width="15.370705244122965%" headers="d0e110 ">Tape  </td>
<td align="center" valign="top" width="13.381555153707053%" headers="d0e112 d0e115 "> O  </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e117 ">O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 "> O </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 "> O </td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 "> O </td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 "> O </td>
</tr>
<tr><td valign="top" width="13.381555153707053%" headers="d0e112 d0e115 ">&nbsp;</td>
<td align="center" valign="top" headers="d0e112 d0e117 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e119 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e121 ">I</td>
<td align="center" valign="top" width="14.466546112115733%" headers="d0e112 d0e123 ">I</td>
<td align="center" valign="top" width="14.10488245931284%" headers="d0e112 d0e125 ">I</td>
</tr>
<tr><td colspan="7" align="left" valign="top" headers="d0e110 d0e112 d0e115 d0e117 d0e119 d0e121 d0e123 d0e125 "> <ul><li>I=input file O=output file I/O=input/output file</li>
<li>*=redirection to a different type of printer</li>
</ul>
</td>
</tr>
</tbody>
</table>
</div>
<p>To use <a href="#fredif__filer">Table 1</a>, identify the file type to override
in the FROM-FILE columns and the file type to override in the TO-FILE column.
The intersection specifies an I or O or both, meaning that the substitution
is valid for these two file types when used as input files or as output files.</p>
<p>For instance, you can override a diskette output file with a tape output
file, and a diskette input file with a tape input file. The chart refers to
file type substitutions only. That is, you cannot change the program function
by overriding an input file with an output file.</p>
<p>The following charts describe the specific defaults taken andwhat to ignore for each
redirection combination.</p>
<div class="fignone"><dl><dt class="dlterm">From:</dt>
<dd>Diskette Input</dd>
<dt class="dlterm">To:</dt>
<dd>ICF: Records are retrieved from the ICF file
one at a time. <p>Display: Records are retrieved from the display one at
a time. Type in the data for each record and press the Enter key when the
record is complete. A nonfield-level device file must be specified. Diskette
label information is ignored.</p>
<p>Database: Records are retrieved in sequential
order. Diskette label information is ignored.</p>
<p>Tape: Records are retrieved
in sequential order. If a label value is specified in the program, that value
is used as the label for the tape file.</p>
</dd>
</dl>
</div>
<div class="fignone"><dl><dt class="dlterm">From:</dt>
<dd>Diskette output</dd>
<dt class="dlterm">To:</dt>
<dd>ICF: Records are written
to the ICF file one at a time. <p>Database: Records are written to the database
in sequential order.</p>
<p>Display: Records are written to the display with
each record overlaying the previous record. You can request each output record
using the Enter key.</p>
<p>Printer: Records are printed and folding or truncating
is performed as specified in the printer file.</p>
<p>Tape: Records are written
on tape in sequential order.</p>
</dd>
</dl>
</div>
<div class="fignone"><dl><dt class="dlterm">From:</dt>
<dd>Tape input</dd>
<dt class="dlterm">To:</dt>
<dd>ICF: Records are retrieved from the ICF file
one at a time. <p>Display: Records are retrieved from the display one at
a time. Type in the data for each record and press the Enter key when the
record is complete. A nonfield-level device file must be specified. Tape
label information is ignored.</p>
<p>Database: Records are retrieved in sequential
order. One record is read as a single field. Tape label information is ignored.</p>
<p>Diskette:
Records are retrieved in sequential order. If a label value is specified
in the program, that value is used as the label for the diskette file.</p>
</dd>
</dl>
</div>
<div class="fignone"><dl><dt class="dlterm">From:</dt>
<dd>Tape Output</dd>
<dt class="dlterm">To:</dt>
<dd>Printer: Records are printed, and folding or
truncating is performed as specified in the printer file. <p>ICF: Records
are written to the ICF file one at a time. Tape label information is ignored.</p>
<p>Diskette:
The amount of data written on diskette depends on the exchange type of the
diskette. If a label value is specified in the program, that value is used
as the label for the diskette file.</p>
<p>Display: Records are written to
the display with each record overlaying the previous record. You can request
each output record using the Enter key.</p>
<p>Database: Records are written
to the database in sequential order.</p>
</dd>
</dl>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="fredr.htm" title="Learn what file redirection is and how it can be used.">File redirection</a></div>
</div>
</div>
</body>
</html>