75 lines
5.3 KiB
HTML
75 lines
5.3 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="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="Source sequence numbers used in copies" />
|
||
|
<meta name="abstract" content="When you copy to a database source file, you can use the SRCOPT parameter to update sequence numbers and initialize dates to zeros." />
|
||
|
<meta name="description" content="When you copy to a database source file, you can use the SRCOPT parameter to update sequence numbers and initialize dates to zeros." />
|
||
|
<meta name="DC.subject" content="source file, sequence numbers used in copies, SRCOPT (Source Update Options) parameter, Source Update Options (SRCOPT) parameter, parameter, SRCOPT (Source Update Options), copying, file, copying to and from files" />
|
||
|
<meta name="keywords" content="source file, sequence numbers used in copies, SRCOPT (Source Update Options) parameter, Source Update Options (SRCOPT) parameter, parameter, SRCOPT (Source Update Options), copying, file, copying to and from files" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbafosrccpy.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 1998, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rbafossqnb" />
|
||
|
<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>Source sequence numbers used in copies</title>
|
||
|
</head>
|
||
|
<body id="rbafossqnb"><a name="rbafossqnb"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Source sequence numbers used in copies</h1>
|
||
|
<div><p>When you copy to a database source file, you can use the SRCOPT
|
||
|
parameter to update sequence numbers and initialize dates to zeros. </p>
|
||
|
<p>By default, the system assigns a sequence number of 1.00 to the first record
|
||
|
and increases the sequence numbers by 1.00 for the remaining records. You
|
||
|
can use the SRCSEQ parameter to set a fractional increased value and to specify
|
||
|
the sequence number at which the renumbering is to start. For example, if
|
||
|
you specify in the SRCSEQ parameter that the increased value is .10 and is
|
||
|
to start at sequence number 100.00, the copied records have the sequence numbers
|
||
|
100.00, 100.10, 100.20, and so on.</p>
|
||
|
<p>If a starting value of .01 and an increased value of .01 are specified,
|
||
|
the maximum number of records that can have unique sequence numbers is 999,999.
|
||
|
When the maximum sequence number (9999.99) is reached, any remaining records
|
||
|
will have a sequence number of 9999.99.</p>
|
||
|
<div class="p">The following example is about copying source from one member to another
|
||
|
in the same file. If MBRB does not exist, it is added; if it does exist, all
|
||
|
records are replaced. <pre>CPYSRCF FROMFILE(QCLSRC) TOFILE(QCLSRC) FROMMBR(MBRA) +
|
||
|
TOMBR(MBRB)</pre>
|
||
|
</div>
|
||
|
<div class="p">The following example is about copying a generic member name from one file
|
||
|
to another. All members starting with PAY are copied. If the corresponding
|
||
|
members do not exist, they are added; if they do exist, all records are replaced. <pre>CPYSRCF FROMFILE(LIB1/QCLSRC) TOFILE(LIB2/QCLSRC) +
|
||
|
FROMMBR(PAY*)</pre>
|
||
|
</div>
|
||
|
<div class="p">The following example is about copying the member PAY1 to the printer file
|
||
|
QSYSPRT (the default for *PRINT). A format similar to the one used by service
|
||
|
entry utility (SEU) is used to print the source statements. <pre>CPYSRCF FROMFILE(QCLSRC) TOFILE(*PRINT) FROMMBR(PAY1)</pre>
|
||
|
</div>
|
||
|
<p>When you copy from a device
|
||
|
source file to a database source file, sequence numbers are added and dates
|
||
|
are initialized to zeros. Sequence numbers start at 1.00 and are increased
|
||
|
by 1.00. If the file being copied has more than 9999 records, then the sequence
|
||
|
number is wrapped back to 1.00 and continues to be increased unless the SRCOPT
|
||
|
and SRCSEQ parameters are specified. </p>
|
||
|
<p>When you are copying from a database source file to a device source file,
|
||
|
the date and sequence number fields are removed.</p>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbafosrccpy.htm" title="The Copy Source File (CPYSRCF) and Copy File (CPYF) commands can be used to write data to and from source file members. When you are copying from a database source file to another database source file that has an insert trigger associated with it, the trigger program is called for each record copied.">Copy source file data</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|