ibm-information-center/dist/eclipse/plugins/i5OS.ic.dm_5.4.0.1/rbal3cpy.htm

110 lines
6.6 KiB
HTML
Raw Normal View History

2024-04-02 14:02:31 +00:00
<?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="copyright" content="(C) Copyright IBM Corporation 2005" />
<meta name="DC.rights.owner" content="(C) Copyright IBM Corporation 2005" />
<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="reference" />
<meta name="DC.Title" content="Notes on the delimited import file (CPYTOIMPF command)" />
<meta name="abstract" content="This topic contains information about using the CPYTOIMPF command with delimited import files." />
<meta name="description" content="This topic contains information about using the CPYTOIMPF command with delimited import files." />
<meta name="DC.Relation" scheme="URI" content="rbal3usingcpyto.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3cpy" />
<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>Notes on the delimited import file (CPYTOIMPF command)</title>
</head>
<body id="rbal3cpy"><a name="rbal3cpy"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Notes on the delimited import file (CPYTOIMPF command)</h1>
<div><p>This topic contains information about using the CPYTOIMPF command
with delimited import files.</p>
<div class="section"><div class="p"> <dl><dt class="dlterm"><img src="./delta.gif" alt="Start of change" />Blanks<img src="./deltaend.gif" alt="End of change" /></dt>
<dd><img src="./delta.gif" alt="Start of change" />You can use the RMVBLANK parameter to handle blank characters from the
character fields. The RMVBLANK parameter has the following options: <ul><li>*NONE: All leading and trailing blanks are retained.</li>
<li>*LEADING: Leading blanks are removed. This is the default value.</li>
<li>*TRAILING: Trailing blanks are removed.</li>
<li>*BOTH: Leading and trailing blanks are removed.</li>
</ul>
<div class="note"><span class="notetitle">Note:</span> Removal of blanks, as specified by the RMVBLANK parameter, takes
precedence over string delimiters.</div>
<img src="./deltaend.gif" alt="End of change" /></dd>
<dt class="dlterm">Null fields</dt>
<dd>If a field is null, the field contains two adjacent field delimiters (no
data in between).</dd>
<dt class="dlterm">Delimiters</dt>
<dd> <img src="./delta.gif" alt="Start of change" /><ul><li>A delimiter cannot be a blank.</li>
<li>A string delimiter or a string escape character cannot be the same as
a field delimiter, a record delimiter, a decimal point, a date separator,
or a time separator.</li>
<li>A field delimiter cannot be the same as a record delimiter.</li>
<li>When a string delimiter character is contained by a string, precede the
string delimiter in the string with the string escape character specified
with the STRESCCHR parameter.</li>
<li>The defaults for delimiters are as follows: <ul><li>String is: *DBLQUOTE (double quotation mark)</li>
<li>Field is: , (comma)</li>
<li>Decimal point is: . (period)</li>
<li>Record is: *EOR (end of record)</li>
</ul>
</li>
</ul><img src="./deltaend.gif" alt="End of change" />
</dd>
<dt class="dlterm"><img src="./delta.gif" alt="Start of change" />String escape character<img src="./deltaend.gif" alt="End of change" /></dt>
<dd><img src="./delta.gif" alt="Start of change" />When a string delimiter character is contained by a string, you can use
the STRESCCHR parameter to specify a string escape character for indicating
that the string delimiter character should be treated as a normal character
instead of string delimiter.<div class="p">The STRESCCHR parameter has the following options:<ul><li>*NONE: No string escape character is used.</li>
<li>*STRDLM: The string delimiter is used as the string escape character.</li>
<li><var class="varname">character-value</var>: The <var class="varname">character-value</var> is
used as the string escape character.</li>
</ul>
</div>
<img src="./deltaend.gif" alt="End of change" /></dd>
<dt class="dlterm">Numeric fields</dt>
<dd>Decimal points are either a period or a comma (command option).</dd>
<dt class="dlterm">Graphic fields</dt>
<dd>The string delimiter is placed around all graphic data. If graphic data
is contained in the file and the string delimiter is the *NONE value, an error
is signaled.</dd>
<dt class="dlterm">All fields</dt>
<dd>The CAST function in SQL copies the data from the from-file to the to-file.
All data is copied and the relative record numbers of the from-file and to-file
are the same, unless the from-file contains deleted records. Deleted records
are not copied.</dd>
<dt class="dlterm">CCSIDs</dt>
<dd>The data from the from-file is read into the to-file's CCSID.<p><img src="./delta.gif" alt="Start of change" />If
the CCSID of the from-file field is 65535, the data will be converted from
the CCSID specified in the FROMCCSID parameter.<img src="./deltaend.gif" alt="End of change" /></p>
</dd>
<dt class="dlterm">Date fields</dt>
<dd>All date formats supported by <span class="keyword">iSeries™</span> can
be exported (*ISO, *USA, *EUR, *JIS, *MDY, *DMY, *YMD, *JUL, *YYMD).</dd>
<dt class="dlterm">Time fields</dt>
<dd>All time formats supported by <span class="keyword">iSeries</span> can
be exported (*ISO, *USA, *EUR, *JIS, *HMS).</dd>
<dt class="dlterm">Date and time separators</dt>
<dd>All valid separators are supported for date and time fields.</dd>
<dt class="dlterm">Timestamp fields</dt>
<dd>Timestamp export fields must be 26 bytes.</dd>
</dl>
</div>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3usingcpyto.htm" title="The Copy To Import File (CPYTOIMPF) command copies the data from the from-file (typically a database file) to an import file.">Use the Copy To Import File (CPYTOIMPF) command to copy between different servers</a></div>
</div>
</div>
</body>
</html>