IBM Support

SITE command rejected by remote server



When using the z/OS or z/VM FTP client, performing a PUT (or MPUT) operation causes a SITE command to be sent to the server. The server's response is to reject the command (usually, this will be a 500 response code), but the subsequent transfer completes successfully.


Output is similar to the following:
   EZA1460I Command:
  EZA1701I >>> SITE FIXrecfm 80 LRECL=80 RECFM=FB BLKSIZE=32720
  500 'SITE FIXRECFM 80 LRECL=80 RECFM=FB BLKSIZE=32720': command not understood.
  EZA1701I >>> PORT 9,37,254,4,10,89
  200 PORT command successful.
  150 Opening ASCII mode data connection for MYFILE.
  226 Transfer complete.
  EZA1617I 2413 bytes transferred in 0.005 seconds.  Transfer rate 482.60 Kbytes/sec.


This occurs because the server does not support one (or more) of the options specified on the SITE command. These options are unique to the z/OS and z/VM FTP servers, and the 500 code is a proper (and expected) response from a server that does not recognize these options. However, that does not affect the remainder of the transfer operation.
The SITE command is implementation specific, and servers have to tolerate commands that they don't recognize (but still report the fact that they did not).

Resolving The Problem

The sending of a SITE command is the default operation for the FTP client when processing a PUT subcommand. It is intended to ensure that the receiving side (if it were another z/OS or z/VM system) will recreate the same format data set. The SITE command can be suppressed for FTP to servers on other platforms by adding a SENDSITE subcommand to the input stream before the PUT subcommand. The SENDSITE subcommand is a toggle; adding a second SENDSITE subcommand to the input stream restores the sending of the SITE command during PUT subcommand processing.

Other keywords

FTPD UNIX Windows Linux AIX pseries AS/400 iseries Apple ZOSFTP

[{"Product":{"code":"SSSN3L","label":"z\/OS Communications Server"},"Business Unit":{"code":"BU054","label":"Systems w\/TPS"},"Component":"All","Platform":[{"code":"PF035","label":"z\/OS"}],"Version":"1.6;1.7;1.8;1.9;1.10;1.11;1.12;1.13;2.1;2.2;2.3","Edition":"","Line of Business":{"code":"","label":""}},{"Product":{"code":"SSB27U","label":"z\/VM"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Component":"5735FAL00 - TCP\/IP VM","Platform":[{"code":"PF037","label":"z\/VM"}],"Version":"5.4","Edition":"","Line of Business":{"code":"LOB16","label":"Mainframe HW"}}]

Document Information

Modified date:
16 November 2020