ibm-information-center/dist/eclipse/plugins/i5OS.ic.rzaiq_5.4.0.1/rzaiqchkftpoutputerror.htm

184 lines
15 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: Check the FTP output file for errors" />
<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="rzaiqchkftpoutputerror" />
<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: Check the FTP output file for errors</title>
</head>
<body id="rzaiqchkftpoutputerror"><a name="rzaiqchkftpoutputerror"><!-- --></a>
<!-- Java sync-link --><script language="Javascript" src="../rzahg/synch.js" type="text/javascript"></script>
<h1 class="topictitle1">Example: Check the FTP output file for errors</h1>
<div><div class="section"><p>While running at the scheduled time, FTP creates the data in file
member FTPLOG shown in figure 3. The data in file member FTPLOG corresponds
to original statements found in both examples.</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="rzaiqchkftpoutputerror__figftpchck"><a name="rzaiqchkftpoutputerror__figftpchck"><!-- --></a><span class="figcap">Figure 1. FTP output (FTPLOG) after running FTPBATCH program
(Part 1 of 5)</span><pre class="screen"> ___________________________________________________________________________________
| |
| Connecting to host name LOOPBACK at address 127.0.0.1using port 21. |
| 220-QTCP at localhost. |
| 220 Connection will close if idle more than 5 minutes. |
| Enter login ID (gwil): |
| |
| &gt;&gt;&gt;GWIL **** |
| 331 Enter password. |
| 230 GWIL logged on. |
| i5/OS is the remote operating system. The TCP/IP versionis "V4R2M0". |
| 250 Now using naming format "0". |
| 257 "QGPL" is current library. |
| Enter an FTP subcommand. |
| |
| &gt; CLOSE |
| 221 QUIT subcommand received. |
| Enter an FTP subcommand. |
| |
| &gt; OPEN SYSNAMRS |
| Connecting to host name SYSNAMRS at address 9.4.73.198 usingport 21. |
| 220 sysnamrs.sysnam123.ibm.com FTP server (Version 4.9 ThuSep 2 20:35:07 CDT |
| 1993) ready. |
| Enter an FTP subcommand. |
| |
|__________________________________________________________________________________|</pre>
</div>
<div class="fignone" id="rzaiqchkftpoutputerror__figfiguniq30"><a name="rzaiqchkftpoutputerror__figfiguniq30"><!-- --></a><span class="figcap">Figure 2. FTP output (FTPLOG) after running FTPBATCH
program (Part 2 of 5)</span><pre class="screen"> ___________________________________________________________________________________
| |
| &gt; USER root **** |
| 331 Password required for root. |
| 230 User root logged in. |
| UNIX Type: L8 Version: BSD-44 |
| Enter an FTP subcommand. |
| |
| &gt; ASCII |
| 200 Type set to A; form set to N. |
| Enter an FTP subcommand. |
| |
| &gt; SYSCMD DLTF FILE(GERRYLIB/RS6) |
| Enter an FTP subcommand. |
| |
| &gt; GET /Itsotest GERRYLIB/RS6/RS7 |
| 200 PORT command successful. |
| 150 Opening data connection for /Itsotest (467 bytes). |
| 226 Transfer complete. |
| 467 bytes transferred in 2.845 seconds. Transfer rate 0.167KB/sec. |
| Enter an FTP subcommand. |
| |
|__________________________________________________________________________________|</pre>
</div>
<div class="fignone" id="rzaiqchkftpoutputerror__figfiguniq31"><a name="rzaiqchkftpoutputerror__figfiguniq31"><!-- --></a><span class="figcap">Figure 3. FTP output (FTPLOG) after running FTPBATCH
program (Part 3 of 5)</span><pre class="screen"> __________________________________________________________________________________
| |
| &gt; CLOSE |
| 221 Goodbye. |
| Enter an FTP subcommand. |
| |
| &gt; OPEN MVAX |
| Connecting to host system mvax at address 9.4.6.252 usingport 21. |
| 220 FTP Service Ready |
| Enter an FTP subcommand. |
| |
| &gt; USER TESTER ****** |
| 331 User name TESTER received, please send password |
| 230 TESTER logged in, directory $DISK1:[TESTER] |
| Enter an FTP subcommand. |
| |
| GET SCREEN1.FILE GERRYLIB/VAX.VAX (REPLACE |
| 200 PORT Command OK. |
| 125 ASCII transfer started for $DISK1:[TESTERSCREEN1.FILE;1(266586 bytes) |
| 226 File transfer completed ok. |
| 265037 bytes transferred in 8.635 seconds. Transfer rate30.694 KB/sec. |
| Enter an FTP subcommand. |
| |
| &gt; CLOSE |
| 221 Goodbye. |
| Enter an FTP subcommand. |
| |
| OPEN SYSNAM02 |
| Connecting to host system SYSNAM02 at address 9.4.73.250using port 21. |
| 220-QTCP at SYSNAM02.sysnam123.ibm.com. |
| 220 Connection will close if idle more than 5 minutes. |
| Enter an FTP subcommand. |
| |
|__________________________________________________________________________________|</pre>
</div>
<div class="fignone" id="rzaiqchkftpoutputerror__figfiguniq32"><a name="rzaiqchkftpoutputerror__figfiguniq32"><!-- --></a><span class="figcap">Figure 4. FTP output (FTPLOG) after running FTPBATCH
program (Part 4 of 5)</span><pre class="screen"> ___________________________________________________________________________________
| |
| &gt; USER GWIL **** |
| 331 Enter password. |
| 230 GWIL logged on. |
| i5/OS is the remote operating system. The TCP/IP version is "V4R2M0". |
| 250 Now using naming format "0". |
| 257 "QGPL" is current library. |
| Enter an FTP subcommand. |
| |
| &gt; EBCDIC |
| 200 Representation type is EBCDIC nonprint. |
| Enter an FTP subcommand. |
| |
| &gt; PUT GERRYLIB/RS6.RS6 GERRYLIB/RS6.RS6 |
| 200 PORT subcommand request successful. |
| 150 Sending file to member RS6 in file RS6 in library GERRYLIB. |
| 250 File transfer completed successfully. |
| 467 bytes transferred in 0.148 seconds. Transfer rate 3.146 KB/sec. |
| Enter an FTP subcommand. |
| |
| &gt; RCMD SNDNETF FILE(GERRYLIB/RS6) TOUSRID((GERRYLIB SYSNAM14)) |
| 250 Command SNDNETF FILE(GERRYLIB/RS6) TOUSRID((GWIL SYSNAM14)) |
| successful. |
| Enter an FTP subcommand. |
| |
|__________________________________________________________________________________|</pre>
</div>
<div class="fignone" id="rzaiqchkftpoutputerror__figfiguniq33"><a name="rzaiqchkftpoutputerror__figfiguniq33"><!-- --></a><span class="figcap">Figure 5. FTP output (FTPLOG) after running FTPBATCH
program (Part 5 of 5)</span><pre class="screen"> ___________________________________________________________________________________
| |
| &gt; CLOSE |
| 221 QUIT subcommand received. |
| Enter an FTP subcommand. |
| &gt; QUIT |
| (This ends the FTP application) |
| |
|__________________________________________________________________________________|</pre>
</div>
<p>Check the output for errors that might have occurred during FTP processing.
You can either check visually or run a program that tests for error reply
codes. Three-digit FTP error reply codes start with 4 or 5. Be careful to
avoid messages, such as '467 bytes transferred...'.</p>
<p><em>Sample procedure</em>:
A sample REXX procedure and a sample physical file member are shipped as part
of the TCP/IP product. File QATMPINC in library QTCP includes the following
two members:</p>
<ul><li>BATCHFTP that contains REXX source code to specify the input and output
batch files, and start FTP.</li>
<li>BFTPFILE that contains the subcommands and data required for logon and
running FTP.</li>
</ul>
</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>