Page 1 of 1

Mainframe PKZIP and and extracting using WINZIP

PostPosted: Thu Apr 28, 2011 12:18 pm
by archiegaw
I'm currently trying to zip mainframe file and download the file to be extracted using Winzip on Windows XP.

JCL USed below

//STEP010 EXEC PGM=PKZIP                                             
//SYSPRINT DD  SYSOUT=*                                               
//SYSOUT   DD  SYSOUT=*                                               
//ZIPIN    DD  DSN=GD.TRANSFER.MONTH.HPGOALS.SSDIPRM.G0262,DISP=SHR   
//SYSIN    DD  *                                                     
-ECHO                                                                 
-ACTION(UPDATE)                                                       
-ARCHIVE_DSN(GD.TRANSFER.ZIP.TEST.ZIP)                               
-PATH(N)                                                             
-INDD(ZIPIN)


The job completes successfully with a return code of zero and message below

ZPAM030I OUTPUT Archive opened:  GD.TRANSFER.ZIP.TEST.ZIP                     
ZPAM253I ADDED     File GD.TRANSFER.MONTH.HPGOALS.SSDIPRM.G0262               
ZPAM254I   as G0262                                                           
ZPAM255I   (DEFLATED 89%/89%)  DATA SIZE 83,700; ZIP SIZE 8,932               
ZPAM140I FILES:   FRESHENED     ADDED    COPIED  EXCLUDED  BYPASSED  IN ERROR 
ZPAM140I                  0         1         0         0         0         0 
ZPMT002I PKZIP processing complete. RC=00000000 0(Dec) 


but when trying to extract the file using winzip , I'm getting the message below

"End-of-central-directory signature not found. Either this file is not a Zip file, or it constitutes one disk of a multi-part Zip file."

I also tried downloading PKZIP but also PKZIP is also umable to extract the downloaded file.

Any suggestions/Ideas?

Re: Mainframe PKZIP and and extracting using WINZIP

PostPosted: Thu Apr 28, 2011 2:03 pm
by NicC
Does it say anywhere that the m/f version of PKZIP produces zip files that are compatible with Windoze version of PKZIP? It may be possible but it may require special parameters. Check the documentation.

Re: Mainframe PKZIP and and extracting using WINZIP

PostPosted: Thu Apr 28, 2011 2:42 pm
by Robert Sample
So, how did you transfer the file to a PC? If you used FTP, did you set it to binary before transferring the file -- zip files must be transferred in binary?

Re: Mainframe PKZIP and and extracting using WINZIP

PostPosted: Thu Apr 28, 2011 5:46 pm
by MrSpock
Having used the PKZIP product before, I can test you that it's 100% compatible with the PKZIP 2.4g standard. We never had a problem with it on any other platform as long as their installed unzip product met that standard. I don't know what else to day other than contact the vendor and have them take a look, try installing the matching product on your windows machine, try it on another server, or, as a last resort, try creating a gzip-compatible archive and try it on a Unix box.