The FTP connection from CA Workload System Agent 11.3 to z/OS (Mainframe) fails with the following error.
Connection established to some_frame.example.COM:21
234 Security environment established - ready for negotiation
Certificate  issuer: CN=CACERT Organization, O=CACERT CA
331 Send password please.
230 MFUSER1 is logged on. Working directory is "MFUSER1.".
215 MVS is the operating system of this server. FTP Server is running on z/OS.
Uploading binary \\\\UNIX_SERVER\\FILES\\TEST1.MF$02.IM.EBCDIC.DAT --> 'TEST.1234.EFT.TRAN(+1)'
200 Protection buffer size accepted
200 Data connection protection set to private
200 Port request OK.
200 Representation type is Image
200 Data transfer mode is Block
SITE LR=94 REC=FB BLK=0(TEST.1234.EFT.TRAN(+1))
200 SITE command was accepted
200 Representation type is Ebcdic NonPrint
125 Storing data set TEST.1234.EFT.TRAN.G009V00
Cipher Suite SSL_RSA_WITH_RC4_128_MD5 is used for this connection
Uploaded 21432 bytes in 0.94 seconds, 222.65 Kbytes/sec.
451:Transfer aborted due to file error. File is catalogued.
221 Quit command received. Goodbye.
The FTP connection fails because the CA WA Agent is not able to upload the entire file.
On the z/OS, the file is accepted as a single long file. When the end of line is reached, the connection is terminated by the z/OS.
The FTP job on the CA Workload Automation manager requires the following FTP site command:
This site command will allow wrapping of long records of ASCII files uploaded to z/OS.
Remove the following command, and allow agent to negotiate the TYPE automatically.
Example of FTP job for ESP
TRANSFERCODETYPE A SSL(YES)
SITECMD SITE LRECL=133
SITECMD SITE BLKSIZE=0
SITECMD SITE RECFM=FB
SITECMD SITE WRAPRECORD
E.g of FTP job for z/OS in CA WA DE (dSeries)