Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
UNIX2DOS in ZOS/UNIX Environment

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: UNIX2DOS in ZOS/UNIX Environment
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

Moderator Team Head


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

PostPosted: Sat Feb 09, 2008 1:47 am    Post subject: Reply to: UNIX2DOS in ZOS/UNIX Environment
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Sat Feb 09, 2008 3:26 am    Post subject:
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

Moderator Team Head


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

PostPosted: Sat Feb 09, 2008 3:47 am    Post subject: Reply to: UNIX2DOS in ZOS/UNIX Environment
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts FTP from Mainframe to Unix - with CRLF vasanthz All Other Mainframe Topics 7 Thu Mar 23, 2017 5:12 am
No new posts JES2 JEC: Use UNIX Pipes to Pass Data... Virendra Shambharkar JCL & VSAM 21 Tue Dec 20, 2016 6:55 pm
This topic is locked: you cannot edit posts or make replies. Alphanumeric to Numeric move on UNIX mistah kurtz COBOL Programming 16 Wed Jul 27, 2016 8:47 pm
No new posts How to copy Tape dataset to unix main... chaky All Other Mainframe Topics 4 Fri Jul 08, 2016 2:52 am
No new posts NDM Packed Data file from Mainframes ... santhosh5983 IBM Tools 2 Wed Mar 30, 2016 2:36 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us