Author: vishwanath001
Subject: FTP XML huge files to mainframe
Posted: Mon Jun 06, 2016 8:21 pm (GMT 5.5)
We are trying to FTP XML files to Mainframe server.The file size varies up to 15 GB
We are trying to use the below command
SITEENTRIES="UNIT=TAPE READTAPEFORMAT=V LRECL=32000 DATACLAS=EDC000EC LOCSITE PRI=128000 SEC=128000 CYLINDERS"
but the ftp fails with following error
451-File transfer failed. File contains records that are longer than the LRECL of the new file.
451 Transfer aborted due to file error. File is deleted.
421 Service not available, remote server has closed connection
Please help/guide to do ftp XML files to mainframe that can range up to 15 GB
code used :
ftp -D 3600 -v -n -i <server name>
user user id pwd
ascii
site "UNIT=TAPE READTAPEFORMAT=V LRECL=32756 DATACLAS=EDC000EC LOCSITE PRI=32760 SEC=32760 CYLINDERS"
put src file 'tgt file'
If there are any changes in code required or any other solution, please let us know
Please note this process is done for XML archival, we also need to retrieve archived mainframe File is same fashion whenever required
Subject: FTP XML huge files to mainframe
Posted: Mon Jun 06, 2016 8:21 pm (GMT 5.5)
We are trying to FTP XML files to Mainframe server.The file size varies up to 15 GB
We are trying to use the below command
SITEENTRIES="UNIT=TAPE READTAPEFORMAT=V LRECL=32000 DATACLAS=EDC000EC LOCSITE PRI=128000 SEC=128000 CYLINDERS"
but the ftp fails with following error
451-File transfer failed. File contains records that are longer than the LRECL of the new file.
451 Transfer aborted due to file error. File is deleted.
421 Service not available, remote server has closed connection
Please help/guide to do ftp XML files to mainframe that can range up to 15 GB
code used :
ftp -D 3600 -v -n -i <server name>
user user id pwd
ascii
site "UNIT=TAPE READTAPEFORMAT=V LRECL=32756 DATACLAS=EDC000EC LOCSITE PRI=32760 SEC=32760 CYLINDERS"
put src file 'tgt file'
If there are any changes in code required or any other solution, please let us know
Please note this process is done for XML archival, we also need to retrieve archived mainframe File is same fashion whenever required