View previous topic :: View next topic
|
Author |
Message |
CICS fan
New User
Joined: 03 Apr 2008 Posts: 82 Location: United States
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
CICS fan
New User
Joined: 03 Apr 2008 Posts: 82 Location: United States
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
CICS fan
New User
Joined: 03 Apr 2008 Posts: 82 Location: United States
|
|
|
|
Brilliant Robert! It worked. Appreciate your help and thanks.
SuperK>> You asked the right questions. Thanks a million. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
Glad to hear it's working! |
|
Back to top |
|
|
|