FTP SITE command with EZA1701I and 500 error code
search cancel

FTP SITE command with EZA1701I and 500 error code

book

Article ID: 37693

calendar_today

Updated On:

Products

Datacom DATACOM - AD CIS COMMON SERVICES FOR Z/OS 90S SERVICES DATABASE MANAGEMENT SOLUTIONS FOR DB2 FOR Z/OS COMMON PRODUCT SERVICES COMPONENT Common Services CA ECOMETER SERVER COMPONENT FOC Easytrieve Report Generator for Common Services INFOCAI MAINTENANCE IPC UNICENTER JCLCHECK COMMON COMPONENT Mainframe VM Product Manager CHORUS SOFTWARE MANAGER CA ON DEMAND PORTAL CA Service Desk Manager - Unified Self Service PAM CLIENT FOR LINUX ON MAINFRAME MAINFRAME CONNECTOR FOR LINUX ON MAINFRAME GRAPHICAL MANAGEMENT INTERFACE WEB ADMINISTRATOR FOR TOP SECRET Xpertware

Issue/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.

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
. . .

Environment

Release: DATABB00200-14.0-Datacom/AD
Component:

Resolution

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.