Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
FTP client API messages and replies z/OS Communications Server: IP Programmer's Guide and Reference SC27-3659-02 |
|
Messages are information statements that are provided by the FTP client. Replies are the responses to commands that are returned from the FTP server to the client. Replies are described in FTPD reply codes in z/OS Communications Server: IP and SNA Codes. Messages are composed of a message ID followed by message text. FTP client messages are described in z/OS Communications Server: IP Messages Volume 1 (EZA) and z/OS Communications Server: IP Messages Volume 4 (EZZ, SNM). You can use the message ID to look up the message in these volumes. However, the message IDs are not written to output unless the client is executing in verbose mode. Following is an example that uses the verbose subcommand in an interactive environment. The FTP client API processes
the subcommand on an SCMD request as previously described. Note that
the verbose subcommand acts as a toggle.
EZA2859I and EZA1460I (the first token that is displayed when executing in verbose mode) are message IDs. The phrases that follow the message ID are message text. Notice that after the verbose command is executed the second time to toggle verbose off, the message texts appear with no message ID. See the Verbose subcommand information in z/OS Communications Server: IP User's Guide and Commands for more information about entering and exiting verbose mode. The FTP client API does not use the EZA1460I Command: message. Instead, it uses a new message with additional status information
about the subcommand that completed. The syntax is:
where:
Replies are composed of a 3-digit numeric reply code followed
by text. The significance of the reply prefix is described in RFC
959, File Transfer Protocol (see Related protocol specifications for information about accessing RFCs); replies used by the z/OS® FTP server
are described in FTPD reply codes in z/OS Communications Server: IP and SNA Codes. Unlike message numbers, reply codes are
never suppressed. Your program can usually disregard the text and
inspect the reply code to determine whether the server processed the
FTP command successfully. The one exception is when an FTP client
sends the SITE command to a z/OS FTP server.
The z/OS FTP server SITE reply is always 200 (implying success), even when
one or more errors occurred when processing the SITE command, as in
the following example:
The following sample output from the CD subcommand shows
messages EZA1701I and EZA2121I from the FTP client and the reply 250
from the FTP server. Note that the CD subcommand causes the client
to send the CWD command to the server.
|
Copyright IBM Corporation 1990, 2014
|