Mainframe FTP jobs failing EBCDIC
search cancel

Mainframe FTP jobs failing EBCDIC

book

Article ID: 7405

calendar_today

Updated On:

Products

DSERIES- SERVER CA Workload Automation DE - System Agent (dSeries)

Issue/Introduction

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 

AUTH TLS 

234 Security environment established - ready for negotiation 

Certificate [1] issuer: CN=CACERT Organization, O=CACERT CA 

.......snip.....

USER MFUSER1 

331 Send password please. 

PASS (hidden) 

230 MFUSER1 is logged on. Working directory is "MFUSER1.". 

SYST 

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)' 

PBSZ 0 

200 Protection buffer size accepted 

PROT P 

200 Data connection protection set to private 

PORT 10,10,22,55,251,254 

200 Port request OK. 

TYPE I 

200 Representation type is Image 

MODE B 

200 Data transfer mode is Block 

SITE LR=94 REC=FB BLK=0(TEST.1234.EFT.TRAN(+1)) 

200 SITE command was accepted 

TYPE E 

200 Representation type is Ebcdic NonPrint 

STOR 'TEST.1234.EFT.TRAN(+1)' 

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. 

QUIT 

221 Quit command received. Goodbye. 

Logged out

 

Environment

CA Workload Automation Sytem Agent 11.3

Cause

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.

 

Resolution

The FTP job on the CA Workload Automation manager requires the following FTP site command:

SITE WRAPRECORD

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.

TYPE E

 

Example of FTP job for ESP

FTP_JOB FTPNEW.UPLOAD 
AGENT AGENTZ 
USER MFUSER1 
SERVERADDR zos.example.com 
SERVERPORT 21 
TRANSFERCODETYPE A SSL(YES) 
TRANSFERDIRECTION UPLOAD 
FTPFORMAT A 
REMOTENAME '''SOMEFILE.PRINTS''' 
LOCALNAME /opt/ca/test/upload.txt 
SITECMD SITE LRECL=133 
SITECMD SITE BLKSIZE=0 
SITECMD SITE RECFM=FB

SITECMD SITE WRAPRECORD  

RUN DAILY 

ENDJOB  

E.g of FTP job for z/OS in CA WA DE (dSeries)

<Please see attached file for image>

src="/servlet/servlet.FileDownload?file=0150c000004AK8TAAW" alt="FTP_JOB" width="576" height="709">

 

 

 

Attachments

1558702785803000007405_sktwi1f5rjvs16q0x.png get_app