FTP SITE command with EZA1701I and 500 error code

Document ID : KB000037693
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:
When you have a need to submit files to CA Technologies for a support case, you have multiple options:
  1. Use the file attachment facilities within CA Support Online;
  2. Attach the files to a reply email message;
  3. Mainframe clients can run a job on their system to attach the files to the case using FTP.
This article addresses a situation with option #3, above.
Question:

In the output log of the FTP process, there is a message EZA1701I showing SITE parameters I did not specify, followed by a 500 error with them. Is this a problem and how do I fix it?

Here is an example:

. . .
EZA1736I bin
EZA1701I >>> TYPE I
200 Type set to I.
EZA1460I Command:
EZA1736I put 'MYSITE.TERSED.FILE' my_upload_file.trs
EZA1701I >>> SITE FIXrecfm 1024 LRECL=1024 RECFM=FB BLKSIZE=27648
500 'SITE FIXRECFM 1024 LRECL=1024 RECFM=FB BLKSIZE=27648': command not understood’

EZA1701I >>> PORT 10,105,201,1,141,252
200 PORT command successful.
EZA1701I >>> STOR my_upload_file.trs
. . .

Answer:
In some FTP clients, the SITE commands are generated with the PUT command to help identify the attributes of the file to the FTP server. This SITE command above will help to create the file with the correct attributes on the server so that the file can then be processed correctly.

However, if the server does not support the SITE command being sent, it will give this 500 error. These above options are unique to the z/OS and z/VM FTP servers, and the 500 code is the expected response from a server that does not recognize these options.  However, this does not affect the remainder of the transfer operation.

The SITE command can be suppressed for FTP to servers on other platforms by adding a SENDSITE subcommand to the input stream prior to the PUT.
Using the above example:
. . .
EZA1736I bin
EZA1701I >>> TYPE I
200 Type set to I.
EZA1460I Command:
EZA1736I sendsite
EZA1611I Usage of SITE command with PUT is OFF

EZA1460I Command:                           
EZA1736I put 'MYSITE.TERSED.FILE' my_upload_file.trs
EZA1701I >>> PORT 10,105,201,1,141,252
200 PORT command successful.
EZA1701I >>> STOR my_upload_file.trs
. . .
Additional Information:

For more information about the 500 SITE command error, please refer to the IBM Technote titled “SITE command rejected by remote server”.

For more information about the z/OS FTP subcommands, please refer to the IBM z/OS Communications Server: IP User's Guide and Commands for V2R1 (SC27-3662-00), in the section “FTP subcommands”.

As always, please contact CA Technologies support if you have further questions.