Downloading file via FTP does not allow 'SITE' command
search cancel

Downloading file via FTP does not allow 'SITE' command

book

Article ID: 115553

calendar_today

Updated On:

Products

Allocate DASD Space and Placement

Issue/Introduction

When trying to get files from ftpdownloads.ca.com all files are received are RECFM variable.
When trying to use SITE command the ftp returns 'SITE not supported'
 
EZA1736I quote site lrecl=80 recfm=fb cyl prim=2 sec=2  
EZA1701I >>> site lrecl=80 recfm=fb cyl prim=2 sec=2    
500 Command not supported.                              

Environment

Release: ESBALQ99000-12.5-CA-Allocate-DASD Space and Placement-with Quota Manager-Extende
Component:

Resolution

 Depending on the IP configuration setup into a file called FTP.DATA or FTPSDATA. The default LRECL is 128 and the default RECFM is VB if the system programmer does not change any of the defaults. The file also controls things like the default space allocation size and type (trk vs.cyl) and whether the default FTP environment is z/OS MVS or z/OS Unix.



The best way to ensure you always get the file format you want is to use the SITE or LOCSITE commands prior to issuing a GET or PUT in your FTP process.
If you are doing a GET from the mainframe you would use LOCSITE prior to the GET.
If you were doing a PUT from another platform to the mainframe, you would use the SITE command - which you need to send via "QUOTE SITE".



Here is an example of doing a GET from an FTP batch job on the mainframe to download from CA Support site a product :



//FTP JOB (ACCT),CLASS=A,...
//STEP1 EXEC PGM=FTP,REGION=4M,PARM='(EXIT'
//SYSPRINT DD SYSOUT=*
//OUTPUT DD SYSOUT=*
//INPUT DD *
FTPPROXY.yoursite                                                    
anonymous@[email protected]                              
email address                      
cd  siteid                                                         
cd  case number                                                    
bin                                                                
get DVD02142159E.pax.Z /a/CAI/DVD02142159E.pax.Z (REPLACE      
locsite LRECL=80 BLKSIZE=27920 RECFM=FB
locsite CYL PRIMARY=100 SECONDARY=20                      
prompt                                                             
prompt                                                             
mget *.BIN                                                         
ascii                                                              
mget *.TXT                                                         
mget *.txt                                                         
quit                                                               
/*

Additional Information

For more information on using FTP on z/OS see the z/OS V2R3.0 Communications Server: IP User's Guide and Commands

You can also have a look to this book TCP/IP Tutorial and Technical Overview - IBM Redbooks

CA Knowledge document  https://ca-broadcomcsm.wolkenservicedesk.com/wolken/esd/knowledgebase_list?articleId=10398