Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

ZIP and FTP: control M character

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
CICS fan

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Tue May 10, 2011 9:11 pm    Post subject: ZIP and FTP: control M character
Reply with quote

Hello All,

We are doing something like this. On MVS we are doing ZIP of a file and FTP'ng the file to a unix server. The end users are complaining that there is a ^M at the end of every line. This can probably be taken care of at unix end. But, is there anyhing, any parameter that we can use at ZIP or FTP end on MVS so that it doesnt come up?

Thanks for your help.
Back to top
View user's profile Send private message

superk

Moderator Team Head


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

PostPosted: Tue May 10, 2011 9:40 pm    Post subject: Reply to: ZIP and FTP: control M character
Reply with quote

If you're using the PKZIP for zSeries product, then please note my comment in this previous topic:

http://www.ibmmainframes.com/viewtopic.php?t=54400&postdays=0&postorder=asc&start=15
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Tue May 10, 2011 9:41 pm    Post subject:
Reply with quote

Check your manual for the ZIP product. There's nothing you can do in the FTP since a ZIP file must be transferred in binary and therefore the data is preserved exactly as it was on the mainframe.

If you weren't transferring a ZIP file, there is an option in FTP to change the line terminator being sent -- but that only affects text files, not binary ones.
Back to top
View user's profile Send private message
CICS fan

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Tue May 10, 2011 9:50 pm    Post subject:
Reply with quote

Thanks SuperK and Robert. We are using ZIP390 and the issue is voming when the zipped and ftp'd file is being unzipped at linux end.
Back to top
View user's profile Send private message
superk

Moderator Team Head


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

PostPosted: Tue May 10, 2011 10:13 pm    Post subject: Reply to: ZIP and FTP: control M character
Reply with quote

What do the programs that these end-users use expect?

Do they want the ASCII data as text or binary (i.e. no EOL or EOF)?
If text, what values do they need for EOL? What values do they need for EOF?
What are you specifying? Does the ZIP/390 product allow you to change those values?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed May 11, 2011 12:27 am    Post subject:
Reply with quote

For ZIP390, you need to use parameter CRLF=LF to indicate not to use the CR/LF line termination sequence but the Unix LF line terminator.

CR is hex '0D' and LF is hex '0A' on a Unix or PC machine. The default for ZIP390 is CRLF=CRLF which is why the Unix people are seeing ^M (x'0D') on each line.
Back to top
View user's profile Send private message
CICS fan

New User


Joined: 03 Apr 2008
Posts: 82
Location: United States

PostPosted: Wed May 11, 2011 11:18 pm    Post subject:
Reply with quote

Brilliant Robert! It worked. Appreciate your help and thanks.

SuperK>> You asked the right questions. Thanks a million.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Wed May 11, 2011 11:24 pm    Post subject:
Reply with quote

Glad to hear it's working! icon_smile.gif
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 PA02 - Programmtically control attent... dodithegreat IMS DB/DC 1 Thu Apr 06, 2017 8:33 pm
No new posts the use of 'B3'x character in a panel Pedro TSO/ISPF 1 Thu Feb 16, 2017 3:09 am
This topic is locked: you cannot edit posts or make replies. How to use 2 input files in control c... Gunapala CN DFSORT/ICETOOL 23 Thu Oct 13, 2016 3:42 pm
This topic is locked: you cannot edit posts or make replies. DSList (3.4) cannot display Chinese c... jacobdng TSO/ISPF 4 Wed Oct 05, 2016 2:51 pm
No new posts Continuation Character ballaswaroop SYNCSORT 8 Thu Aug 25, 2016 4:46 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us