55 lines
3.5 KiB
HTML
55 lines
3.5 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="File types and copying" />
|
|
<meta name="abstract" content="There are considerations when you copy files of one type to files of another type." />
|
|
<meta name="description" content="There are considerations when you copy files of one type to files of another type." />
|
|
<meta name="DC.subject" content="copying file, from-file and to-file different types (source and data)" />
|
|
<meta name="keywords" content="copying file, from-file and to-file different types (source and data)" />
|
|
<meta name="DC.Relation" scheme="URI" content="rbal3bcfuc.htm" />
|
|
<meta name="DC.Format" content="XHTML" />
|
|
<meta name="DC.Identifier" content="rbal3fityp" />
|
|
<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>File types and copying</title>
|
|
</head>
|
|
<body id="rbal3fityp"><a name="rbal3fityp"><!-- --></a>
|
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
|
<h1 class="topictitle1">File types and copying</h1>
|
|
<div><p>There are considerations when you copy files of one type to files
|
|
of another type.</p>
|
|
<div class="p">When the from-file and to-file are different types (source and data), the
|
|
following statement is true. For the <a href="../cl/cpyfrmqryf.htm">CPYFRMQRYF</a> command, the from-file is always treated as
|
|
a data file: <ul><li>If the from-file or to-file is a device file (or an inline data file),
|
|
the copy function will automatically add or delete the source sequence number
|
|
and date fields for each record copied.</li>
|
|
<li>If the from-file and to-file are database files, you must specify FMTOPT(*CVTSRC)
|
|
to perform the operation. The sequence number and date fields are added or
|
|
deleted as they are for a device file, and the data part of each record is
|
|
copied without regard to the field definitions in the file record formats.
|
|
For a source physical to-file, you can use the SRCSEQ parameter to control
|
|
how sequence numbers are created if you also specified SRCOPT(*SEQNBR).</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>
|
|
</body>
|
|
</html> |