IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

UNIX2DOS in ZOS/UNIX Environment


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
TMOORE

New User


Joined: 08 Feb 2008
Posts: 4
Location: Macon Georgia

PostPosted: Sat Feb 09, 2008 1:19 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Feb 09, 2008 1:47 am
Reply with quote

I'd be looking into the LOCSIte subcommand "SBSENDEOL" parameter:

5.35 LOCSIte subcommand--Specify site information to the local host.
Back to top
View user's profile Send private message
TMOORE

New User


Joined: 08 Feb 2008
Posts: 4
Location: Macon Georgia

PostPosted: Sat Feb 09, 2008 2:10 am
Reply with quote

That sounds like exactly what I needed. icon_biggrin.gif
Will test it out and post what I find.

Thanks!!
Back to top
View user's profile Send private message
TMOORE

New User


Joined: 08 Feb 2008
Posts: 4
Location: Macon Georgia

PostPosted: Sat Feb 09, 2008 3:16 am
Reply with quote

Whoops... LOCSITE is an FTP command. It's not available with SFTP.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Sat Feb 09, 2008 3:26 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Sat Feb 09, 2008 3:47 am
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Creating Unix Directory using COBOL i... COBOL Programming 2
No new posts Need COBOL COPY Help in MVS Environment COBOL Programming 4
No new posts COBOL400 SET ENVIRONMENT COBOL Programming 1
No new posts Problème reproducing a production bu... ABENDS & Debugging 1
No new posts Batch JCL to Copy from Unix Directory... JCL & VSAM 5
Search our Forums:

Back to Top