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

72 lines
4.4 KiB
HTML
Raw Permalink 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="concept" />
<meta name="DC.Title" content="Copy commands support for null values" />
<meta name="abstract" content="You can copy files that contain null-capable fields by using the CPYF and CPYFRMQRYF commands. The FMTOPT parameter allows mapping of null-capable fields." />
<meta name="description" content="You can copy files that contain null-capable fields by using the CPYF and CPYFRMQRYF commands. The FMTOPT parameter allows mapping of null-capable fields." />
<meta name="DC.subject" content="copy function, copy command support for null values, null value support, copy commands" />
<meta name="keywords" content="copy function, copy command support for null values, null value support, copy commands" />
<meta name="DC.Relation" scheme="URI" content="rbal3bcfuc.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/cpyf.htm" />
<meta name="DC.Relation" scheme="URI" content="../cl/cpyfrmqryf.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3nul" />
<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>Copy commands support for null values</title>
</head>
<body id="rbal3nul"><a name="rbal3nul"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Copy commands support for null values</h1>
<div><p>You can copy files that contain null-capable fields by using the
CPYF and CPYFRMQRYF commands. The FMTOPT parameter allows mapping of null-capable
fields.</p>
<p> The INCREL parameter allows the selection of
records that are based on whether a field is or is not null.</p>
<div class="p">While copying the records to the to-file, the following commands ignore
null values in the from-file: <dl><dt class="dlterm"><a href="../cl/cpytotap.htm">CPYTOTAP</a></dt>
<dd>CPYTODKT</dd>
<dt class="dlterm"><a href="../cl/cpyfrmtap.htm">CPYFRMTAP</a></dt>
<dd>CPYFRMDKT</dd>
</dl>
</div>
<div class="p">The following conditions or values on the <a href="../cl/cpyf.htm">CPYF</a> or <a href="../cl/cpyfrmqryf.htm">CPYFRMQRYF</a> command ignore null values in the from-file
while copying the records to the to-file: <dl><dt class="dlterm">FMTOPT(*NOCHK)</dt>
<dd></dd>
<dt class="dlterm">FMTOPT(*CVTSRC)</dt>
<dd></dd>
<dt class="dlterm">Device to-file</dt>
<dd></dd>
</dl>
</div>
<p>Record selection involving null values can still be done, but only the
user-specified or default value in the buffer (rather than a null value) is
copied to the to-file. Null values cannot be preserved in these instances.
Any print listings produced when a copy command is run (including TOFILE(*PRINT),
PRINT(*COPIED), PRINT(*EXCLUDE), and PRINT(*ERROR)) also ignore null values.</p>
</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="../cl/cpyf.htm">CPYF command</a></div>
<div><a href="../cl/cpyfrmqryf.htm">CPYFRMQRYF command</a></div>
</div>
</div>
</body>
</html>