ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaef_5.4.0.1/rzaefcpyfile.htm

58 lines
3.6 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 xmlns="http://www.w3.org/1999/xhtml" lang="en-US" xml:lang="en-us">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="dc.language" scheme="rfc1766" 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. -->
<meta name="dc.date" scheme="iso8601" content="2005-09-06" />
<meta name="copyright" content="(C) Copyright IBM Corporation 2000, 2006" />
<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="keywords" content="
copying iSeries file to the QNetWare file system, example" />
<title>Example: Copying a file to the QNetWare file system</title>
<link rel="stylesheet" type="text/css" href="ibmidwb.css" />
<link rel="stylesheet" type="text/css" href="ic.css" />
</head>
<body>
<a id="Top_Of_Page" name="Top_Of_Page"></a><!-- Java sync-link -->
<script language = "Javascript" src = "../rzahg/synch.js" type="text/javascript"></script>
<a name="cpyfile"></a>
<h4 id="cpyfile">Example: Copying a file to the QNetWare file system</h4>
<a name="wq98"></a>
<div class="notetitle" id="wq98">Note:</div>
<div class="notebody">Read the <a href="rzaef02.htm#netwcodedisclaimer">Code disclaimer information</a> for important legal
information.</div>
<p>To copy a file to the QNetWare file system, you can use either iSeries&trade; Navigator
or the CPY command. However, because no conversion is done, the resulting
file in the QNetWare file system may not be useful. You can see an example of <a href="rzaefcpydatabase.htm#cpydatabase">copying an iSeries database file</a> that requires conversion from the packed decimal
format.</p>
<p><span class="bold">Copying a file from iSeries Navigator:</span></p>
<ol type="1">
<li>In iSeries Navigator, expand your iSeries server &mdash;&gt;<span class="bold">File Systems</span> &mdash;&gt;<span class="bold">Integrated File
System</span> &mdash;&gt; the file system that contains the file you want
to copy to QNetWare.</li>
<li>Click on the file you want to copy to select it; then right-click and
select <span class="bold">Copy</span> from the drop-down menu.</li>
<li>Expand the QNetWare file system, then the NetWare server.</li>
<li>Click on the directory into which you want to copy the file to select
it; then right-click and select <span class="bold">Paste</span> from the drop-down
menu.</li></ol>
<p><span class="bold">Copying a file with the COPY (or CPY) command:</span></p><a id="idx181" name="idx181"></a>
<p>To copy source physical file <tt class="xph">FILE1</tt> in library <tt class="xph">LIBRARY1</tt> with member <tt class="xph">MEMBER1</tt> to the SYS: volume on NetWare server <tt class="xph">SERVER1</tt> in directory <tt class="xph">DTA</tt>, you would use this command:</p>
<pre class="xmp">CPY OBJ('/QSYS.LIB/LIBRARY1.LIB/FILE1.FILE/MEMBER1.MBR')
TOOBJ('/QNETWARE/SERVER1.SVR/SYS/DTA/MEMBER1.DAT')
TOCODEPAGE(437)
DTAFMT(*TEXT) </pre>
<a id="Bot_Of_Page" name="Bot_Of_Page"></a>
</body>
</html>