Page 1 of 1

PKZIP and PKUNZIP

PostPosted: Fri Oct 31, 2008 3:16 am
by satlab
Hi,

I have a zip file, which contains two files. These two files are variable length files. I would like to extract one of the files from the zip file. What should be the DCB parameters in the jcl

I gave DCB as (RECFM=VB, LRECL=0), but it is creating output file with record length 76 and truncating some of the records. I want the output file to have all records without any truncation.

Also when i am zipping the files, it is adding SCBASE, DCBASE (Storage Management Information) at the end of the zip file. I don't what this information to be there in the zip file. Is there anyway to get rid of this while zipping the file.

Can you please throw some light on these questions? Thanks for looking into this.

Re: PKZIP and PKUNZIP

PostPosted: Fri Oct 31, 2008 6:36 am
by dick scherrer
Hello,

It may help if you post the zip and unzip jobs (jcl and control statements).

Re: PKZIP and PKUNZIP

PostPosted: Fri Oct 31, 2008 8:33 pm
by satlab
This is the jcl that i am using to zip two files.

//STEP020 EXEC PGM=PKZIP
//STEPLIB DD DSN=TECHPRD.PKZIP.LOADLIB,DISP=SHR
//SYSPRINT DD SYSOUT=*
//INFL1 DD DSN=TVDT.N2.VROL.RUA5AV00,DISP=SHR
//INFL2 DD DSN=TVDT.N2.VROL.BUA5AV00,DISP=SHR
//OUTFL1 DD DSN=TVDT.N2.VROL.UA5AV00,
// DISP=(NEW,CATLG,DELETE),UNIT=SYSDA,
// SPACE=(CYL,(10,20),RLSE),DCB=(RECFM=FB,LRECL=80)
//SYSIN DD *
-ARCHIVE_OUTFILE(OUTFL1)
-ZIPPED_DSN(TVDT.N2.VROL.RUA5AV00,RUA5AV00)
-ZIPPED_DSN(TVDT.N2.VROL.BUA5AV00,BUA5AV00)
-INFILE(INFL1)
-INFILE(INFL2)
/*
======================================
The content at the end of the zip file is as follows.

ðÉâ.¥¦.kÇH l5g£¡ô.%..¿Ì.¢Ñ...C¼.¥G/4Aââ.R«.¡´..È=.¼.Ú.[¡Îs3·"Ù.&...!.......§+¬.ã
NÎeø...R.....Ì...............âí . î..Á.È.Z390.... .....°.........*.&............
......Ø......TSS315......MCTSTSTD......SCBASE ......DCBASE ...Á.......Ã....&..
.!.......§+¬.«qc.c...á%....Ì...........o...êí . î..Á.È.Z390.... .....°.........*
.&..................Ø......TSS271......MCTSTSTD......SCBASE ......DCBASE ...Á.
......Ã....&...........*.........ëÁÄÍÊÁ!ñ&.Ã?Ê.:.|ë.Â`.&.ï êá...................
******************************** Bottom of Data ********************************

You can see that SMS information (Volume: TSS315,SMS Data Class:DCBASE,SMS Management Class:MCTSTSTD
SMS Storage Class:SCBASE) is there in the zip file.

I do not want this to appear in the zip file. Can you please help me in getting rid of this information from zip file

Re: PKZIP and PKUNZIP

PostPosted: Sat Nov 01, 2008 1:17 am
by dick scherrer
Hello,

IIRC, pkzip uses that info to verify that the archive is intact. You might want to ask that of pkware support.

Does the lrecl provlem still exist? If so, please post the unzip jcl and control statements.

As an experiment, you might try to pre-allocate the file(s) to be unzipped with the dcb specification you want and see if the unzip is successful.

Re: PKZIP and PKUNZIP

PostPosted: Fri Nov 14, 2008 11:01 pm
by satlab
SMS information cannot be removed from the zip file. But it will not cause any issues when we transfer this file to other environments. I figured out that this is not causing the issue.

Thanks.