I have a unix file zipped by gzip. After I transfer it binary to windows I unzip it with winrar or 7z. Then I transfer it to Os/390 IBM mainframe but data structure was changed due to "end of line" conversion during unzipping in Windows.
* I have to follow this transfer way (ftp from unix 2 windows then 2 mainframe)
* Normal file size is about 7 GB (compressed file size is about 300 MB)
* I shoul not convert file to DOS format in the windows server as it may effect data structure apart from LF to CRLF conversion.
If I transfer any unzipped file from unix to windows I could transfer it to mainframe without any LF to CRLF conversion problem.
What I need to do to avoid this LF to CRLF conversion problem ?
Is it possipble to unzip that file in the mainframe ?
Joined: 26 Apr 2004 Posts: 4649 Location: Raleigh, NC, USA
Is it possipble to unzip that file in the mainframe?
Sure. Do you have PKUNZIP available? If not, I would think that you could reverse-engineer the gzip command. It's sort of unfortunate that the creators of the file couldn't use a standard licensed zip product to ensure seamless compatability across any enterprise complex.