0 votes
by (320 points)
edited

I zipped a file in C# using Rebex DLLs. But , I am unable to unzip that file in IBM Mainframe's zOS and SUNOS(Solaris Unix Operating System 5.8). I am unable to unzip even in other versions of SUNOS. This is the error message that I get in SUNOS. Please note that the names "IMMSUM","IMMCPLKP","IMMCNCPT" are file names inside the zip.

Error message from unzip on Sun Station = <<zipfilename>>

indsun1:pdv1:/export/home/is/dvop/testzip $ unzip <<zipfilename>> Archive: <<zipfilename>> error [<<zipfilename>>]: missing 242 bytes in zipfile (attempting to process anyway) error [<<zipfilename>>]: attempt to seek before beginning of zipfile (please check that you have transferred or created the zipfile in the appropriate BINARY mode and that you have compiled UnZip properly) (attempting to re-compensate) inflating: IMMSUM
inflating: IMMCPLKP
inflating: IMMCNCPT bad CRC 2bba2f4e (should be 42210124) file #3: bad zipfile offset (local header sig): 859072 (attempting to re-compensate) file #3: bad zipfile offset (local header sig): 859072 file #4: bad zipfile offset (local header sig): 858932 file #5: bad zipfile offset (local header sig): 859043 file #6: bad zipfile offset (local header sig): 859645 file #7: bad zipfile offset (local header sig): 1428435 file #8: bad zipfile offset (local header sig): 1438343 file #9: bad zipfile offset (local header sig): 1438410 file #10: bad zipfile offset (local header sig): 1438477 file #11: bad zipfile offset (local header sig): 1438623 file #12: bad zipfile offset (local header sig): 1438995

Applies to: File Transfer Pack
by (320 points)
edited

Can someone help me on this ?

by (70.2k points)
edited

Are you able to unzip the file using Rebex or WinZip on Windows?

by (320 points)
edited

Lukas, Yes I am able to unzip it on windows.

by (144k points)
edited

Please run the "unzip -v" command and let copy&paste the version info here. Thanks!

by (320 points)
edited

Lukas, Please see the results for the "unzip -v" command

indsun1:pdv1:/export/home/is/dvop/testzip $ unzip -v <<filename>> Archive: <<filename>> error <<filename>>: missing 242 bytes in zipfile (attempting to process anyway) Length Method Size Ratio Date Time CRC-32 Name ------ ------ ---- ----- ---- ---- ------ ---- 1631 Defl:N 737 55% 03-27-12 14:21 bd2ec265 IMMSUM 128 Defl:N 25 81% 03-27-12 14:21 aa5bdc3a IMMCPLKP

by (320 points)
edited

5749268 Defl:N 858138 85% 03-27-12 14:21 42210124 IMMCNCPT 43 Defl:N 45 -5% 03-27-12 14:21 4cc7da19 IMMCOPY 130 Defl:N 53 59% 03-27-12 14:21 abc7e4d4 IMMCTLKP 2990 Defl:N 545 82% 03-27-12 14:21 7e276906 IMMDICT 9503892 Defl:N 568733 94% 03-27-12 14:21 34c2bb42 IMMLINK 175224 Defl:N 9851 94% 03-27-12 14:21 777b68b7 IMMMLST 22 Defl:N 8 64% 03-27-12 14:21 d7cbc50e immmg.zip 22 Defl:N 8 64% 03-27-12 14:21 d7cbc50e immpc.zip

by (320 points)
edited

84 Defl:N 89 -6% 03-27-12 14:21 b1c40962 IMMREAD 3395 Defl:N 316 91% 03-27-12 14:21 33fbad79 IMMVAL 14806981 Defl:N 14451906 2% 03-27-12 14:21 9105f01f immxml.zip ------ ------ --- ------- 30243810 15890454 48% 13 files indsun1:pdv1:/export/home/is/dvop/testzip $

Please note that I have posted as three different comments because of the limitation in the number of characters.

1 Answer

0 votes
by (70.2k points)
edited
 
Best answer

Please ensure you uploaded the zip file using BINARY mode (not ASCII/TEXT mode). In ASCII mode line endings are transformed to fit the target OS (which causes binary files to be corrupted).

You can check the length of both local and uploaded file. They should be the same length.

by (320 points)
edited

Thanks it worked :)

...