I am creating a zip file with two files in it in mainframe and ftp'ing the zip file to Unix server. When i open the file after unzipping it in Unix server with Vi editor, there are ^M characters at the end of each and every line.
I cannot use shell scripting in Unix server because the zip file that we are creating in mainframe would be ftp'ed to external vendor and they are not ready to change the process on their end. Is there any way that we can eliminate these ^M characters in zip file.
Can we replace the carriage return with spaces before zipping the file in mainframe? But when i view the file in HEX ON mode, it is showing up as follows.
<?xml version="1.0" encoding="UTF-8"?>
46A994A89A89977F4F748989889877EEC6F766
CF74305592965EF1B0F055364957EF43608FFE
-----------------------------------------------------------------------------
<RequestPackage batchID="2008111202" id="1" name="RUA5BC02" seq="1"
4D89A8AAD889888488A88CC77FFFFFFFFFF748877F74989877DECFCCFF74A8977F7
C9584523713217502133894EF2008111202F094EF1F05145EF94152302F0258EF1F
-----------------------------------------------------------------------------
xmlns="http://www.visa.com/ROLSI"
4444A999A778AA9766AAA4A8A848996DDDEC7
000074352EF8337A11666B5921B364196329F
46A994A89A89977F4F748989889877EEC6F766
CF74305592965EF1B0F055364957EF43608FFE
-----------------------------------------------------------------------------
<RequestPackage batchID="2008111202" id="1" name="RUA5BC02" seq="1"
4D89A8AAD889888488A88CC77FFFFFFFFFF748877F74989877DECFCCFF74A8977F7
C9584523713217502133894EF2008111202F094EF1F05145EF94152302F0258EF1F
-----------------------------------------------------------------------------
xmlns="http://www.visa.com/ROLSI"
4444A999A778AA9766AAA4A8A848996DDDEC7
000074352EF8337A11666B5921B364196329F
How do i find out the carriage return here.
Please help me.
Thanks