HOLDDATA File Not Formatted Properly On Host
search cancel

HOLDDATA File Not Formatted Properly On Host

book

Article ID: 125741

calendar_today

Updated On:

Products

Top Secret Top Secret - LDAP

Issue/Introduction



When FTPing a HOLDDATA.DTA.TXT file from PC to host, the file is not being formatted properly on the host. Here is my FTP using the Command Prompt :

ftp> quote site lrecl=80 recfm=fb blksize=32720 cyl pri=50 sec=10 
200 SITE command was accepted 
ftp> put ro86945.holddata.dta.txt 
200 Port request OK. 
125 Storing data set xxxxx.yyyyy.dataset.name 
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. 
ftp: 646 bytes sent in 0.03Seconds 23.07Kbytes/sec. 
ftp> quote site wraprecord <<< then issue 
200 SITE command was accepted 
ftp> put ro86945.holddata.dta.txt 
200 Port request OK. 
125 Storing data set xxxxx.yyyyy.dataset.name 
250 Transfer completed (lines were wrapped) 
ftp: 646 bytes sent in 0.03Seconds 21.53Kbytes/sec. 
ftp>

Environment

Release:
Component: TSSMVS

Resolution

The HOLDDATA file is a text file, so when FTPing the HOLDDATA file from CA Support Online to the pc, the ftp should done in ASCII. The ASCII command has to be issued before the get command. (If this is not done, the default format is binary.) Once transferred in ASCII, the file should be formatted correctly on the pc and, when FTP'd it to the mainframe, the dataset should also be formatted correctly. Below is an example FTPing from CA Support Online to pc:

C:\Users\myid\Downloads>ftp 
ftp> open 
To ftpdownloads.ca.com 
Connected to scftpd.ca.com. 
220-Welcome to CA Managed File Transfer for Downloads. 
220 CA Managed File Transfer - Server Ready! 
550 Command not recognized or allowed. 
User (xxxx.xxxx.xx):(none)): [email protected] (id given from download in Support Online) 
331 Username OK. Need password. 
Password: (password given from download in Support Online) 
230 Password OK. Connected. logged in 
ftp> dir 
200 PORT command successful. 130.200.144.234:63271. 
150 Opening data connection for file list. 
-rwxrwxrwx 1 user group 646 Sep 02 2016 RO86945.HOLDDATA.DTA.TXT 
226 Directory transfer complete. (generate:4ms)(send:4ms) 
ftp: 89 bytes received in 0.00Seconds 44.50Kbytes/sec. 
ftp> ascii 
200 Command ok : ASCII type selected. 
ftp> get RO86945.HOLDDATA.DTA.TXT RO86945.DTA.TXT 
200 PORT command successful.  
150 Opening ASCII mode data connection for (646 bytes). 
226-Download File Size:646 bytes  
226 Transfer complete.  
ftp: 672 bytes received in 0.00Seconds 672000.00Kbytes/sec. 
ftp> quit