69 lines
4.9 KiB
HTML
69 lines
4.9 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="Selecting records using a specified record format name (RCDFMT parameter)" />
|
|
<meta name="abstract" content="You can use the RCDFMT parameter to select records of a certain record format to copy. Note that you can use this parameter on the CPYF command only." />
|
|
<meta name="description" content="You can use the RCDFMT parameter to select records of a certain record format to copy. Note that you can use this parameter on the CPYF command only." />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3selrecords.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3eitheror.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3copysele.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3copydelrec.htm" />
|
|
<meta name="DC.Relation" scheme="URI" content="../dbmult/rzaf3kickoff.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3copysel" />
|
|
<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> Selecting records using a specified record format name (RCDFMT parameter)</title>
|
|
</head>
|
|
<body id="rbal3copysel"><a name="rbal3copysel"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1"> Selecting records using a specified record format name (RCDFMT parameter)</h1>
|
|
<div><p>You can use the RCDFMT parameter to select records
|
|
of a certain record format to copy. Note that you can use this parameter on
|
|
the CPYF command only.</p>
|
|
<p>When you copy from a logical file to a physical file and the logical file
|
|
has more than one record format, you must specify a record format name unless
|
|
you specify FMTOPT(*NOCHK). If you use FMTOPT(*NOCHK), then you can specify
|
|
RCDFMT(*ALL) to copy all from-file record formats to the to-file. The command
|
|
uses this record format name to select records to copy.</p>
|
|
<div class="p">This example shows how you can use the copy command to copy records from
|
|
the logical file ORDFILL to the physical file INVOICE by using the record
|
|
format ORDHDR: <pre>CPYF FROMFILE(DSTPRODLB/ORDFILL) +
|
|
TOFILE(DSTPRODLB/INVOICE) RCDFMT(ORDHDR) +
|
|
MBROPT(*ADD)</pre>
|
|
</div>
|
|
<p>When you copy from a logical file that has more than one record format
|
|
to a device file, you can specify either a single record format to be used
|
|
or specify RCDFMT(*ALL) to copy using all the record formats. If the record
|
|
formats have different lengths, the command pads the shorter records with
|
|
blanks.</p>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3selrecords.htm" title="You can use parameters on the copy commands to select only the specific records that you want to copy.">Select the records to copy</a></div>
|
|
</div>
|
|
<div class="relconcepts"><strong>Related concepts</strong><br />
|
|
<div><a href="rbal3eitheror.htm" title="You get different results while specifying CRTFILE(*YES) on the CPYF command and the CPYFRMQRYF command.">Specify CRTFILE(*YES) on either the CPYF or CPYFRMQRYF command</a></div>
|
|
<div><a href="rbal3copysele.htm" title="When you specify a FROMKEY or FROMRCD parameter, you can specify the number of records (NBRRCDS parameter) to be copied instead of the TOKEY or TORCD parameter.">Select a specified number of records (NBRRCDS parameter)</a></div>
|
|
<div><a href="rbal3copydelrec.htm" title="You might want to copy deleted records to preserve the relative record numbers of records that are copied from the from-file. You can copy both deleted and undeleted records from one physical file member to another by specifying the COMPRESS(*NO) parameter on a copy command.">Copy deleted records (COMPRESS parameter)</a></div>
|
|
</div>
|
|
<div class="relinfo"><strong>Related information</strong><br />
|
|
<div><a href="../dbmult/rzaf3kickoff.htm">DB2 Multisystem for iSeries</a></div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |