129 lines
7.8 KiB
HTML
129 lines
7.8 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="task" />
|
||
|
<meta name="DC.Title" content="Example: Create the FTP input file (FTCPDMS)" />
|
||
|
<meta name="DC.Relation" scheme="URI" content="rzaiqbatchftpcomplx.htm" />
|
||
|
<meta name="copyright" content="(C) Copyright IBM Corporation 2004, 2006" />
|
||
|
<meta name="DC.Rights.Owner" content="(C) Copyright IBM Corporation 2004, 2006" />
|
||
|
<meta name="DC.Format" content="XHTML" />
|
||
|
<meta name="DC.Identifier" content="rzaiqcrtftpinput" />
|
||
|
<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>Example: Create the FTP input file (FTCPDMS)</title>
|
||
|
</head>
|
||
|
<body id="rzaiqcrtftpinput"><a name="rzaiqcrtftpinput"><!-- --></a>
|
||
|
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
|
||
|
<h1 class="topictitle1">Example: Create the FTP input file (FTCPDMS)</h1>
|
||
|
<div><div class="section"><p>The FTP input file must contain all the FTP client
|
||
|
subcommands necessary to connect and log on to the server, set up and complete
|
||
|
the file transfers, close the server connection, and end the client session.
|
||
|
The following example shows the subcommands used for transferring files to
|
||
|
two different remote systems.</p>
|
||
|
<div class="note"><span class="notetitle">Note:</span> By using the code examples, you agree
|
||
|
to the terms of the <a href="codedisclaimer.htm">Code license and disclaimer information</a>.</div>
|
||
|
<div class="fignone" id="rzaiqcrtftpinput__figftpcmds"><a name="rzaiqcrtftpinput__figftpcmds"><!-- --></a><span class="figcap">Figure 1. Transferring files to two remote systems</span><pre> ___________________________________________________________________________________
|
||
|
| |
|
||
|
| Columns . . . : 1 71 Browse GERRYLIB/QCLSRC |
|
||
|
| SEU==> FTPCMDS |
|
||
|
| FMT ** ...+... 1 ...+... 2 ...+... 3 ...+... 4 ...+... 5...+... 6 ...+... 7 |
|
||
|
| *************** Beginning of data************************************* |
|
||
|
| 0001.00 gwil **** |
|
||
|
| 0002.00 close |
|
||
|
| 0003.00 open sysnamrs |
|
||
|
| 0004.00 user root root |
|
||
|
| 0005.00 ascii |
|
||
|
| 0006.00 syscmd dltf file(gerrylib/rs6) |
|
||
|
| 0007.00 get /Itsotest gerrylib/rs6.rs6 |
|
||
|
| 0008.00 close |
|
||
|
| 0009.00 open mvax |
|
||
|
| 0010.00 user tester tester |
|
||
|
| 0011.00 get screen1.file gerrylib/vax.vax (replace |
|
||
|
| 0012.00 close |
|
||
|
| 0013.00 open sysnam02 |
|
||
|
| 0014.00 user gwil **** |
|
||
|
| 0015.00 ebcdic |
|
||
|
| 0016.00 put gerrylib/rs6.rs6 gerrylib/rs6.rs6 |
|
||
|
| 0017.00 quote rcmd sndnetf file(gerrylib/rs6) tousrid((gwilsysnam14)) |
|
||
|
| 0018.00 close |
|
||
|
| 0019.00 quit |
|
||
|
| ****************** End of data**************************************** |
|
||
|
| F3=Exit F5=Refresh F9=Retrieve F10=Cursor F12=Cancel |
|
||
|
| F16=Repeat find F24=More keys |
|
||
|
| |
|
||
|
|__________________________________________________________________________________|</pre>
|
||
|
</div>
|
||
|
<p>The following explanation might help you to understand the FTP client
|
||
|
subcommands shown in <a href="#rzaiqcrtftpinput__figftpcmds">Figure 1</a>. The
|
||
|
line numbers on the display correspond to the numbers that follow.</p>
|
||
|
<dl><dt class="dlterm">0001</dt>
|
||
|
<dd>User ID and password for dummy connection within client iSeries™ SYSNAM03.</dd>
|
||
|
<dt class="dlterm">0002</dt>
|
||
|
<dd> Close dummy connection in iSeries SYSNAM03.</dd>
|
||
|
<dt class="dlterm">0003</dt>
|
||
|
<dd>Open control connection to RISC System/6000<sup>®</sup> SYSNAMRS.</dd>
|
||
|
<dt class="dlterm">0004</dt>
|
||
|
<dd>USER subcommand with user ID and password for SYSNAMRS.</dd>
|
||
|
</dl>
|
||
|
<div class="note"><span class="notetitle">Note:</span> When running FTP in batch mode, the USER subcommand must
|
||
|
follow an OPEN subcommand. Both the logon user ID and password parameters
|
||
|
for the USER subcommand should be provided. This is different when operating
|
||
|
FTP interactively online. When FTP is run interactively online, and then the
|
||
|
client will automatically initiate a USER subcommand and prompt you for a
|
||
|
logon ID. There is no automatic USER subcommand when running FTP in batch
|
||
|
mode.</div>
|
||
|
<dl><dt class="dlterm">0005</dt>
|
||
|
<dd>Transfer ASCII data (will be converted on iSeries to/from EBCDIC).</dd>
|
||
|
<dt class="dlterm">0006</dt>
|
||
|
<dd> CL command to be run on client iSeries: delete file. Instead parameter
|
||
|
(REPLACE can be used with the next statement.)</dd>
|
||
|
<dt class="dlterm">0007</dt>
|
||
|
<dd>Retrieve file from RISC System/6000 system.</dd>
|
||
|
<dt class="dlterm">0008</dt>
|
||
|
<dd>Close control connection to RISC System/6000 SYSNAMRS.</dd>
|
||
|
<dt class="dlterm">0009</dt>
|
||
|
<dd>Open connection to VAX MVAX.</dd>
|
||
|
<dt class="dlterm">0010</dt>
|
||
|
<dd>USER subcommand with user ID and password for MVAX.</dd>
|
||
|
<dt class="dlterm">0011</dt>
|
||
|
<dd>Retrieve file from VAX replacing existing iSeries file.</dd>
|
||
|
<dt class="dlterm">0012</dt>
|
||
|
<dd>Close control connection to VAX MVAX.</dd>
|
||
|
<dt class="dlterm">0013</dt>
|
||
|
<dd>Open control connection to remote iSeries SYSNAM02.</dd>
|
||
|
<dt class="dlterm">0014</dt>
|
||
|
<dd>USER subcommand with user ID and password for SYSNAM02.</dd>
|
||
|
<dt class="dlterm">0015</dt>
|
||
|
<dd>Transfer EBCDIC data (as it is from iSeries to iSeries).</dd>
|
||
|
<dt class="dlterm">0016</dt>
|
||
|
<dd>Send iSeries file
|
||
|
to iSeries SYSNAM02
|
||
|
with TCP/IP.</dd>
|
||
|
<dt class="dlterm">0017</dt>
|
||
|
<dd>Send this file from server iSeries SYSNAM03 to remote iSeries SYSNAM14
|
||
|
through TCP/IP network.</dd>
|
||
|
<dt class="dlterm">0018</dt>
|
||
|
<dd>Close control connection to iSeries SYSNAM02.</dd>
|
||
|
<dt class="dlterm"><span class="uicontrol">0019</span></dt>
|
||
|
<dd>End FTP application.</dd>
|
||
|
</dl>
|
||
|
</div>
|
||
|
</div>
|
||
|
<div>
|
||
|
<div class="familylinks">
|
||
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rzaiqbatchftpcomplx.htm">Complex example: Batch FTP</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|