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.
Sftp from AS400 z/OS data translation
-
- Posts: 2
- Joined: Thu Mar 06, 2014 9:01 am
Re: Sftp from AS400 z/OS data translation
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 ?
- 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 ?
-
- Posts: 2
- Joined: Thu Mar 06, 2014 9:01 am
Re: Sftp from AS400 z/OS data translation
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.
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.
Re: Sftp from AS400 z/OS data translation
what ls options did you use to resolve the packed decimal issues with sftp and also cozbatch too if it happened there?
Re: Sftp from AS400 z/OS data translation
Co:Z doesn't do packed decimal conversions - only text (codepage) conversions and line termination.
-
- Posts: 1
- Joined: Tue Mar 08, 2016 6:59 am
Re: Sftp from AS400 z/OS data translation
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.
== www.solitairechamp.net ==