ibm-information-center/dist/eclipse/plugins/i5OS.ic.cl_5.4.0.1/cvtrjedta.htm

375 lines
14 KiB
HTML

<!doctype html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head><META http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Convert RJE Data (CVTRJEDTA)</title>
<link rel="stylesheet" type="text/css" href="../rzahg/ic.css">
</head>
<body bgcolor="white">
<script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<a name="CVTRJEDTA.Top_Of_Page"></a>
<h2>Convert RJE Data (CVTRJEDTA)</h2>
<table width="100%">
<tr>
<td valign="top" align="left"><b>Where allowed to run: </b>All environments (*ALL)<br>
<b>Threadsafe: </b>No
</td>
<td valign="top" align="right">
<a href="#CVTRJEDTA.PARAMETERS.TABLE">Parameters</a><br>
<a href="#CVTRJEDTA.COMMAND.EXAMPLES">Examples</a><br>
<a href="#CVTRJEDTA.ERROR.MESSAGES">Error messages</a></td>
</tr>
</table>
<div> <a name="CVTRJEDTA"></a>
<h3>Convert RJE Data</h3>
<p>The CVTRJEDTA command converts data written in communications format to data in FCFC or data format written to a device, DDM, or physical file.
</p>
<p>The INFILE must be in SNA or BSC communications format, and can be a DDM file.
</p>
<p>If a file in the list of input files causes an error condition, the command issues an error message and skips to the next input file in the list.
</p>
<p>If a DDM file is specified as the OUTFILE parameter, *FIRST must be specified as the MEMBER parameter.
</p>
<p>
<b>Note: </b>If an FCT is specified in this command, the PGM parameter in the FCT entries is ignored.
</p>
<h3>Error messages for CVTRJEDTA</h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>RJE0109</b></dt>
<dd>Processing of command ended because of error.
</dd>
<dt><b>RJE0110</b></dt>
<dd>Error(s) occurred during processing of command.
</dd>
<dt><b>RJE0196</b></dt>
<dd>Record from host longer than expected length.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CVTRJEDTA.PARAMETERS.TABLE">Parameters</a></h3>
<table border="1" cellpadding="4" cellspacing="0">
<!-- col1="10" col2="15" col3="30" col4="10" -->
<tr>
<th bgcolor="aqua" valign="bottom" align="left">Keyword</th>
<th bgcolor="aqua" valign="bottom" align="left">Description</th>
<th bgcolor="aqua" valign="bottom" align="left">Choices</th>
<th bgcolor="aqua" valign="bottom" align="left">Notes</th>
</tr>
<tr>
<td valign="top" rowspan="5"><a href="#CVTRJEDTA.INFILE"><b>INFILE</b></a></td>
<td valign="top">Input file</td>
<td valign="top">Values (up to 8 repetitions): <i>Element list</i></td>
<td valign="top" rowspan="5">Required, Positional 1</td>
</tr>
<tr>
<td valign="top">Element 1: Input file</td>
<td valign="top">
<i>Qualified object name</i></td>
</tr>
<tr>
<td valign="top" style="padding-left:10pt">Qualifier 1: Input file</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top" style="padding-left:10pt">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top">Element 2: Member</td>
<td valign="top">
<i>Name</i>, <b><u>*FIRST</u></b>, *ALL</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CVTRJEDTA.OUTFILE"><b>OUTFILE</b></a></td>
<td valign="top">Output file</td>
<td valign="top"><i>Qualified object name</i></td>
<td valign="top" rowspan="3">Required, Positional 2</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Output file</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr><tr>
<td valign="top"><a href="#CVTRJEDTA.OUTMBR"><b>OUTMBR</b></a></td>
<td valign="top">Output member</td>
<td valign="top"><i>Name</i>, <b><u>*GEN</u></b>, *FIRST</td>
<td valign="top">Optional, Positional 3</td>
</tr>
<tr>
<td valign="top"><a href="#CVTRJEDTA.FSN"><b>FSN</b></a></td>
<td valign="top">File member sequence number</td>
<td valign="top">0-999, <b><u>1</u></b></td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CVTRJEDTA.DTAFMT"><b>DTAFMT</b></a></td>
<td valign="top">Data format</td>
<td valign="top"><b><u>*FCFC</u></b>, *DATA</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top"><a href="#CVTRJEDTA.OUTRCDLEN"><b>OUTRCDLEN</b></a></td>
<td valign="top">Output record length</td>
<td valign="top"><b><u>*FIXED</u></b>, *FILE</td>
<td valign="top">Optional</td>
</tr>
<tr>
<td valign="top" rowspan="3"><a href="#CVTRJEDTA.FCT"><b>FCT</b></a></td>
<td valign="top">Forms control table</td>
<td valign="top">Single values: <b><u>*NONE</u></b><br>Other values: <i>Qualified object name</i></td>
<td valign="top" rowspan="3">Optional</td>
</tr>
<tr>
<td valign="top">Qualifier 1: Forms control table</td>
<td valign="top"><i>Name</i></td>
</tr><tr>
<td valign="top">Qualifier 2: Library</td>
<td valign="top"><i>Name</i>, <b><u>*LIBL</u></b>, *CURLIB</td>
</tr></table>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
</div>
<div> <a name="CVTRJEDTA.INFILE"></a>
<h3>Input File (INFILE)</h3>
<p>Specifies up to eight qualified names for communications format input files. If an input file does not contain data in communications format, an error message is issued.
</p>
<p>You cannot override the INFILE parameter with OVRDBF MBR(*ALL). If this is attempted, the file is skipped and an error message is sent. To format all the members of a physical file, use the *ALL option for the physical file member name.
</p>
<p>The possible library values are:
</p>
<ul>
<li>*LIBL: The library list for the job is used to locate the communications format input file.
</li>
<li>*CURLIB: The current library for the job is used to locate the communications format input file. If no current library is specified, QGPL is used.
</li>
<li><i>library-name:</i> Specify the name of the library where the communications format input file is located.
</li>
</ul>
<p><b>Element 1: Input File Names</b>
</p>
<p><i>input-file-name:</i> Specify up to eight names for communications format input files.
</p>
<p><b>Element 2: Member Names</b>
</p>
<p>The possible values are:
</p>
<ul>
<li>*FIRST: The first member of the physical file is converted.
</li>
<li>*ALL: All members of the physical file are converted.
</li>
<li><i>member-name:</i> Specify the name of the physical file members being converted.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CVTRJEDTA.OUTFILE"></a>
<h3>Output File (OUTFILE)</h3>
<p>Specifies the qualified name of the file that receives the formatted output of the command. This file is only used when no matching FCT entry is found.
</p>
<p>The possible library values are:
</p>
<ul>
<li>*LIBL: The library list for the job is used to locate the file. If the file is not found, one is created in the current library. If no current library exists, the file is created in the QGPL library.
</li>
<li>*CURLIB: The current library for the job is used to locate the file. If no current library is specified, QGPL is used.
</li>
<li><i>library-name:</i> Specify the name of the library where the file is located.
</li>
</ul>
<p><i>file-name:</i> Specify the name of the diskette, DDM, physical, printer, or source physical file that receives the formatted output. Diskette and printer files must be program described, with a single record format and field.
</p>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CVTRJEDTA.OUTMBR"></a>
<h3>Output Member (OUTMBR)</h3>
<p>Specifies the file member to which output is directed. This parameter applies only if you specify a DDM, physical, or source physical file in the OUTFILE parameter.
</p>
<p>The possible values are:
</p>
<ul>
<li>*GEN: Creates a member name formatted as either Affffffccc or Bffffffccc where:
<dl>
<dt><b>A</b></dt>
<dd>Indicates that the file member contains print data.
</dd>
<dt><b>B</b></dt>
<dd>Indicates that the file member contains punch data.
</dd>
<dt><b>ffffff</b></dt>
<dd>Up to the first six non-blank characters of the form type that was received from the host subsystem. Only A through Z, 0 through 9, $, #, @, and _ are valid in the form type that is used to generate member names.
</dd>
<dt><b>ccc</b></dt>
<dd>A three-digit FSN controlled by the session to maintain member uniqueness.
</dd>
</dl>
<p>If a member name already exists in the file, the three-digit sequence number is incremented by one until a unique name is reached and a member is created, or until sequence numbers up to and including 999 have been tried without creating a member.
</p>
<p>If no member is created, the writer issues a message requesting you to either try again or to cancel this file.
</p>
</li>
<li>*FIRST: The first member of the file is used.
</li>
<li><i>member-name:</i> Specify the name of the file member. If the member does not exist, an inquiry message is sent to the RJE message queue.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CVTRJEDTA.FSN"></a>
<h3>File Member Seq Number (FSN)</h3>
<p>Specifies the initial three-digit FSN that is used to create member names. This parameter applies only if *GEN is specified for the MBR parameter.
</p>
<p>The possible values are:
</p>
<ul>
<li>1: The three-digit FSN is 001.
</li>
<li><i>file-sequence-number:</i> Specify the initial three-digit FSN. Leading zeros are not required for FSNs less than 100.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CVTRJEDTA.DTAFMT"></a>
<h3>Data Format (DTAFMT)</h3>
<p>Specifies the format of the output data.
</p>
<p>The possible values are:
</p>
<ul>
<li>*FCFC: The output data is in first-character forms control (FCFC) format. If DEVTYPE(*PUN) is specified, *FCFC is not valid.
<p>The data can be written to a physical file in FCFC format and printed later using the Copy File (CPYF) command, specifying an FCFC printer file for the TOFILE parameter. The record length of the physical file must include one extra byte for the FCFC code.
</p>
</li>
<li>*DATA: The output data is in data format. No FCFC codes are embedded in the data. Specify *DATA to send data to a physical file to be processed by a program.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CVTRJEDTA.OUTRCDLEN"></a>
<h3>Output Rcd Lngth (OUTRCDLEN)</h3>
<p>Specifies the record length of the converted data.
</p>
<p>The possible values are:
</p>
<ul>
<li>*FIXED: RJE re-blocks the data according to its own defaults, which are as follows:
<ul>
<li>When a printer output stream is being converted:
<ul>
<li>If data is being written to a printer file, it is re-blocked to 132-byte records for 10 or fewer characters per inch (cpi), and 198-byte records when the cpi is greater than 10.
</li>
<li>If data is being written to a physical file, it is re-blocked to 132-byte records.
</li>
</ul>
</li>
<li>When a punch output stream is being converted, the data is re-blocked to 80-byte records.
</li>
<li>For diskette files, the output stream is re-blocked to 128-byte records.
</li>
</ul>
</li>
<li>*FILE: RJE re-blocks the output stream as follows:
<ul>
<li>When a printer output stream is being converted:
<ul>
<li>If data is being written to a printer file, the record length is determined by the page width of the printer file.
</li>
<li>If data is being written to a physical file, the record length of the output data is determined by the record length of that file.
</li>
</ul>
</li>
<li>When a punch output stream is being converted:
<ul>
<li>If data is being written to a printer file, the record length is determined by the page width of the printer file.
</li>
<li>If data is being written to a physical file, the record length of the output data is determined by the record length of that file.
</li>
</ul>
</li>
<li>For diskette files, the output stream is re-blocked to 128-byte records.
</li>
</ul>
<p>The maximum record length that RJE supports, including carriage-control characters, is 255 bytes. To ensure record alignment, the record length (page width) of the output file must be greater than or equal to the logical record length of the data that is received from the host subsystem.
</p>
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<div> <a name="CVTRJEDTA.FCT"></a>
<h3>Forms Cntrl Table (FCT)</h3>
<p>Specifies the qualified name of the FCT to be used when converting the data.
</p>
<p>The possible values are:
</p>
<ul>
<li>*NONE: An FCT is not used.
<p>The possible library values are:
</p>
<ul>
<li>*LIBL: The library list for the job is used to locate the FCT.
</li>
<li>*CURLIB: The current library for the job is used to locate the FCT. If no current library is specified, QGPL is used.
</li>
<li><i>library-name:</i> Specify the name of the library where the FCT is located.
</li>
</ul>
</li>
<li><i>forms-control-table-name:</i> Specify the name of the FCT.
</li>
</ul>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div>
<h3><a name="CVTRJEDTA.COMMAND.EXAMPLES">Examples</a></h3>None
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
<hr size="2" width="100%">
<div><h3><a name="CVTRJEDTA.ERROR.MESSAGES">Error messages</a> </h3>
<p><b><u>*ESCAPE Messages</u></b>
</p>
<dl>
<dt><b>RJE0109</b></dt>
<dd>Processing of command ended because of error.
</dd>
<dt><b>RJE0110</b></dt>
<dd>Error(s) occurred during processing of command.
</dd>
<dt><b>RJE0196</b></dt>
<dd>Record from host longer than expected length.
</dd>
</dl>
</div>
<table width="100%">
<tr><td align="right"><a href="#CVTRJEDTA.Top_Of_Page">Top</a></td></tr>
</table>
</body>
</html>