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

67 lines
4.8 KiB
HTML

<?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="concept" />
<meta name="DC.Title" content="CPYFRMQRYF command support for CCSIDs" />
<meta name="abstract" content="The Copy from Query File (CPYFRMQRYF) command provides coded character set identifier (CCSID) conversions for character and double-byte character sets (DBCS) fields." />
<meta name="description" content="The Copy from Query File (CPYFRMQRYF) command provides coded character set identifier (CCSID) conversions for character and double-byte character sets (DBCS) fields." />
<meta name="DC.subject" content="CPYFRMQRYF (Copy from Query File) command, CCSID support, copy function, CPYFRMQRYF support for CCSIDs, copy command, null values, CPYFRMQRYF support for CCSIDs, CPYSRCF support for CCSIDs" />
<meta name="keywords" content="CPYFRMQRYF (Copy from Query File) command, CCSID support, copy function, CPYFRMQRYF support for CCSIDs, copy command, null values, CPYFRMQRYF support for CCSIDs, CPYSRCF support for CCSIDs" />
<meta name="DC.Relation" scheme="URI" content="rbal3bcfuc.htm" />
<meta name="DC.Relation" scheme="URI" content="../nls/rbagscdra.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3cpyfr" />
<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>CPYFRMQRYF command support for CCSIDs</title>
</head>
<body id="rbal3cpyfr"><a name="rbal3cpyfr"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">CPYFRMQRYF command support for CCSIDs</h1>
<div><p>The Copy from Query File (CPYFRMQRYF) command provides coded character
set identifier (CCSID) conversions for character and double-byte character
sets (DBCS) fields. </p>
<p>The <a href="../cl/opnqryf.htm">Open
Query File (OPNQRYF)</a> command converts all character and DBCS fields
to the current job CCSID, except for fields that have a CCSID of 65535 or
where *HEX is specified on the MAPFLD parameter. If the current job CCSID
is 65535, then no conversions are done by OPNQRYF. The <a href="../cl/cpyfrmqryf.htm">Copy from Query File (CPYFRMQRYF)</a> command
can also do conversions to the to-file field CCSIDs, so it is possible that
double conversions will be done and data might be lost. To avoid the possibility
of doing double conversions, change the job CCSID to <samp class="codeph">65535</samp> before
doing an OPNQRYF if you plan to do a CPYFRMQRYF.</p>
<div class="p">CPYFRMQRYF uses a different query format. It is the same as the open query
file format except for the CCSIDs for character and DBCS fields. The CCSIDs
in this query format are determined according to the following conditions: <ul><li>If the OPNQRYF job CCSID is 65535, all character and DBCS fields in the
query format have the same CCSIDs as the open query file format.</li>
<li>If the OPNQRYF job CCSID is not 65535, all character and DBCS fields in
the query format have their CCSIDs reset to the associated single-byte, mixed
or double-byte CCSIDs of the OPNQRYF job CCSID, based on the field type. Fields
with a CCSID of 65535 remain unchanged. If there is no associated mixed or
double-byte CCSID for the OPNQRYF job CCSID, 65535 is used.</li>
</ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3bcfuc.htm" title="You can copy from a physical or logical database file, open query file, diskette file, tape file, or inline data file. The to-file can be a physical database file, diskette file, tape file, program-described printer file, or *PRINT.">Copy files: basic functions</a></div>
</div>
<div class="relinfo"><strong>Related information</strong><br />
<div><a href="../nls/rbagscdra.htm">Work with CCSIDs</a></div>
</div>
</div>
</body>
</html>