Mainframe FTP jobs failing EBCDIC

Document ID:  TEC1294067
Last Modified Date:  09/14/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Workload Automation DE

Releases

  • CA Workload Automation DE:Release:11.3
  • CA Workload Automation DE:Release:12
  • CA Workload Automation DE:Release:11.3 SP3
  • CA Workload Automation DE:Release:11.3 SP2

Components

  • CA DSERIES WORKLOAD AUTOMATION HIGH AVAILABILITY:DSERHA
  • CA DSERIES WORKLOAD AUTOMATION:DSRIES
  • CA WORKLOAD AUTOMATION SYSTEM AGENT FOR Z/OS:ZOSAGM
  • CA Workload Automation System Agent:SYSAGD
Issue:

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)

FTP_JOB

 

 

 

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >