Sftp from AS400 z/OS data translation

Discussion of Co:Z sftp, a port of OpenSSH sftp for z/OS
Post Reply
paul.tomes@atos.net
Posts: 2
Joined: Thu Mar 06, 2014 9:01 am

Sftp from AS400 z/OS data translation

Post by paul.tomes@atos.net »

Hello.

We have an issue transfering an EDCDIC file with sftp from an AS400 to a z/OS 1.13 lpar. When transfers are initiated from a Windows or Linux server then the file starts out as ASCII and ends up in a z/OS dataset in EDCDIC.

However, when a transfer is initiated from an AS400. Some translation is taking place as follows:

The original EBCDIC file on the AS400 starts with the characters 2000 which is F2F0F0F0 in hex.

When the file arrives in a traditional mainframe MVS dataset the hex characters are CD8C8C8C.

I am a mainframe systems programmer and have little AS400 knowledge. However, the AS400 support person trying to get the transfer to work says that if the file is put in a "unix" file system on the AS400 server and then transferred to the mainframe, it is then correct in the MVS dataset unless there were any packed fields in the original AS400 file.

It looks like during the transfer the EDCDIC file is being treated as an ASCII file and then converted to EDCDIC in the MVS dataset!

Does anyone have experience of transfering EBCDIC files from AS400 to mainframe and how to prevent the translation we are seeing?

The AS400 is using open SSH.

Thanks.
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Sftp from AS400 z/OS data translation

Post by dovetail »

Need more information:

- are you using Co:Z SFTP on the mainframe?

- is the AS/400 the client or the server (which end starts the connection)?

- what does your command input look like? Do you have any lzopts or ls /+options ?
paul.tomes@atos.net
Posts: 2
Joined: Thu Mar 06, 2014 9:01 am

Re: Sftp from AS400 z/OS data translation

Post by paul.tomes@atos.net »

This problem has now been solved by using ls options. We are running Co:Z SFTP on the mainframe and the transfer is initiated from the AS400.

The AS400 support person was saying that the ftp site option was no longer available with sftp. Looks like using Co:Z SFTP all of the site parms can be entered using the ls options.

Thanks for your help.
dmbru1
Posts: 6
Joined: Thu Apr 17, 2014 8:17 am

Re: Sftp from AS400 z/OS data translation

Post by dmbru1 »

what ls options did you use to resolve the packed decimal issues with sftp and also cozbatch too if it happened there?
dovetail
Site Admin
Posts: 2022
Joined: Thu Jul 29, 2004 12:12 pm

Re: Sftp from AS400 z/OS data translation

Post by dovetail »

Co:Z doesn't do packed decimal conversions - only text (codepage) conversions and line termination.
waleeedijaz
Posts: 1
Joined: Tue Mar 08, 2016 6:59 am

Re: Sftp from AS400 z/OS data translation

Post by waleeedijaz »

The AS400 support person was saying that the ftp site option was no longer available with sftp. Looks like using Co:Z SFTP all of the site parms can be entered using the ls options.
Post Reply