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

63 lines
4.3 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="concept" />
<meta name="DC.Title" content="Copy database source files to database source files" />
<meta name="abstract" content="When you copy database source files to database source files, you use SRCOPT(*SEQNBR) and the SRCSEQ parameter to assign sequence numbers to the copied records." />
<meta name="description" content="When you copy database source files to database source files, you use SRCOPT(*SEQNBR) and the SRCSEQ parameter to assign sequence numbers to the copied records." />
<meta name="DC.Relation" scheme="URI" content="rbal3sequence.htm" />
<meta name="DC.Format" content="XHTML" />
<meta name="DC.Identifier" content="rbal3copdsf" />
<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 database source files to database source files</title>
</head>
<body id="rbal3copdsf"><a name="rbal3copdsf"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Copy database source files to database source files</h1>
<div><p>When you copy database source files to database source
files, you use SRCOPT(*SEQNBR) and the SRCSEQ parameter to assign sequence
numbers to the copied records.</p>
<p>You can copy between database source files by using the <a href="../cl/cpysrcf.htm">CPYSRCF</a> or <a href="../cl/cpyf.htm">CPYF</a> command. The CPYSRCF command
might be easier to use because the parameter defaults are better suited for
copying database source files.</p>
<p>If you specify SRCOPT(*SEQNBR) to update the sequence numbers, the server
considers the SRCSEQ parameter. The SRCSEQ parameter specifies the starting
value that is assigned to the first record that is copied and the increment
value. The defaults are 1.00 and 1.00. You can specify a whole number of no
more than 4 digits or a fraction of no more than 2 digits for the starting
value and the increment value. You must use a decimal point for fractions.</p>
<p>For example, if you specify SRCSEQ(100.50), then the records copied will
have sequence numbers 100.00, 100.50, 101.00, 101.50, and so on.</p>
<p>Suppose that you have a file that contains more than 9999 records. Use
a fractional increment value so that each record has a unique sequence number.
If you specify a starting value of .01 and an increment value of .01, the
maximum number of records copied with unique sequence numbers is 999 999.
When the maximum sequence number is exceeded (9999.99), all remaining records
on that copy are initialized to 9999.99. The server does not wrap back to
1.00.</p>
<p>If the database source file that you are copying to has only an arrival
sequence access path, the records are always physically placed at the end
of the file. (Because the file does not have a keyed sequence access path,
you cannot insert records into the middle of the file keyed access path.)</p>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3sequence.htm" title="You can perform additions or changes to sequence number fields and date fields sequence number and date fields when you are copying files.">Add or changing source file sequence number and date fields (SRCOPT and SRCSEQ Parameters)</a></div>
</div>
</div>
</body>
</html>