95 lines
5.9 KiB
HTML
95 lines
5.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="Copy files that contain DataLinks" />
|
||
|
<meta name="abstract" content="You can specify CRTFILE(*YES) on the CPYF and CPYFRMQRYF commands when you copy files that contain DataLinks (DLs). If the from-file is an SQL table, view, or index that contains a DL, these commands create an SQL table." />
|
||
|
<meta name="description" content="You can specify CRTFILE(*YES) on the CPYF and CPYFRMQRYF commands when you copy files that contain DataLinks (DLs). If the from-file is an SQL table, view, or index that contains a DL, these commands create an SQL table." />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rbal3copycomplex.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="rbal3cpydl" />
|
||
|
<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 files that contain DataLinks</title>
|
||
|
</head>
|
||
|
<body id="rbal3cpydl"><a name="rbal3cpydl"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Copy files that contain DataLinks</h1>
|
||
|
<div><p>You can specify CRTFILE(*YES) on the CPYF and CPYFRMQRYF commands
|
||
|
when you copy files that contain DataLinks (DLs). If the from-file is an SQL
|
||
|
table, view, or index that contains a DL, these commands create an SQL table.</p>
|
||
|
<p>You cannot copy DDM files that contain DataLinks to <span class="keyword">iSeries™</span> servers running at Version 4
|
||
|
Release 3 or earlier.</p>
|
||
|
<p>DLs can be mapped only to other DLs. Therefore, if you specify *NONE, *MAP,
|
||
|
or *DROP on the FMTOPT parameter, the from-file and to-file must have corresponding
|
||
|
DLs. Truncation is not allowed. Shorter DLs, however, can be converted to
|
||
|
longer DLs.</p>
|
||
|
<p>A file can be linked only once on a server. Therefore, a copy that will
|
||
|
perform mapping or that requires the formats to be identical (that is, *NONE,
|
||
|
*MAP, or *DROP is specified on the FMTOPT parameter) will not be successful
|
||
|
if corresponding from-file and to-file fields are both FILE LINK CONTROL.
|
||
|
Copies that are performed using the *NOCHK parameter option are not restricted,
|
||
|
but errors will occur if a DL that references a linked file is copied to a
|
||
|
DL that is FILE LINK CONTROL.</p>
|
||
|
<div class="p">When you specify CRTFILE(*YES) on the CPYF or CPYFRMQRYF command, and the
|
||
|
from-file contains a FILE LINK CONTROL DL field, the following statements
|
||
|
are true, depending on how you specify the FMTOPT parameter: <ul><li>If you specify *NONE, *MAP, or *DROP on the FMTOPT parameter, the file
|
||
|
is created, but an error message is issued and no I/O is performed.</li>
|
||
|
<li>If you specify *NOCHK or *CVTSRC on the FMTOPT parameter, the file is
|
||
|
created and I/O is attempted. The I/O will be unsuccessful for any records
|
||
|
that contain a valid LINK.</li>
|
||
|
</ul>
|
||
|
</div>
|
||
|
<div class="p">The following table shows LINK scenarios associated with the CPYF command
|
||
|
when different FMTOPT values are used.
|
||
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" frame="border" border="1" rules="all"><thead align="left"><tr><th align="left" valign="top" width="50%" id="d0e34">LINK status for from-field to to-field when
|
||
|
FMTOPT parameter is *MAP or *NONE</th>
|
||
|
<th align="left" valign="top" width="50%" id="d0e36">How linking is performed</th>
|
||
|
</tr>
|
||
|
</thead>
|
||
|
<tbody><tr><td align="left" valign="top" width="50%" headers="d0e34 ">FILE LINK CONTROL to FILE LINK CONTROL</td>
|
||
|
<td align="left" valign="top" width="50%" headers="d0e36 ">Not allowed. Files can be linked only once.</td>
|
||
|
</tr>
|
||
|
<tr><td align="left" valign="top" width="50%" headers="d0e34 ">NO LINK CONTROL to FILE LINK CONTROL (with
|
||
|
no truncation)</td>
|
||
|
<td align="left" valign="top" width="50%" headers="d0e36 ">Linking is performed.</td>
|
||
|
</tr>
|
||
|
<tr><td align="left" valign="top" width="50%" headers="d0e34 ">FILE LINK CONTROL to NO LINK CONTROL (with
|
||
|
no truncation)</td>
|
||
|
<td align="left" valign="top" width="50%" headers="d0e36 ">No linking is performed.</td>
|
||
|
</tr>
|
||
|
<tr><td align="left" valign="top" width="50%" headers="d0e34 ">NO LINK CONTROL to NO LINK CONTROL (with
|
||
|
no truncation)</td>
|
||
|
<td align="left" valign="top" width="50%" headers="d0e36 ">No linking is performed.</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rbal3copycomplex.htm" title="You can copy from and to files that contain user-defined functions (UDFs), user-defined types (UDTs), DataLinks (DLs), large objects (LOBs), identity columns, or ROWIDs.">Copy complex objects</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>
|