View previous topic :: View next topic
|
Author |
Message |
TMOORE
New User
Joined: 08 Feb 2008 Posts: 4 Location: Macon Georgia
|
|
|
|
Hi,
I am attempting to SFTP an EBCDIC file offsite. The target side wants the file in "DOS format" instead of the "UNIX format" I am currently sending them.
Currently I am copying my EBCDIC file over to the ZOS/UNIX environment and then using the sftp command with an "ascii" parm to send the file to them in ASCII format.
I've read that there is a UNIX2DOS command in the Unix environment that will convert from a "Unix" format to a "Dos" format. Specifically, changing the end of line marker on each line.
Problem is, this command is not available in the ZOS/UNIX environment. Can anyone tell me if anyone has needed to do this and what solution you found?
Thanks,
TMOORE |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
TMOORE
New User
Joined: 08 Feb 2008 Posts: 4 Location: Macon Georgia
|
|
|
|
That sounds like exactly what I needed.
Will test it out and post what I find.
Thanks!! |
|
Back to top |
|
|
TMOORE
New User
Joined: 08 Feb 2008 Posts: 4 Location: Macon Georgia
|
|
|
|
Whoops... LOCSITE is an FTP command. It's not available with SFTP. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Have you tried to ftp the file directly from zos?
We've sent/received many files via zos without using the zos/unix.
Depending on your requirement, might you "pull" the file to the remote system rather than "push"ing it from the mainframe? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
OK.
Transalte the file from EBCDIC to ASCII first (I like to use the OCOPY utility). Then, add the desired EOL value(s) with a utility like DFSORT/SYNCSORT. Then, transmit the file in binary mode. |
|
Back to top |
|
|
|