PKZIP and PKUNZIP



Post anything related to mainframes (IBM & UNISYS) if not fit in any of the above categories

PKZIP and PKUNZIP

Postby satlab » Fri Oct 31, 2008 3:16 am

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.
satlab
 
Posts: 12
Joined: Tue Oct 07, 2008 11:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: PKZIP and PKUNZIP

Postby dick scherrer » Fri Oct 31, 2008 6:36 am

Hello,

It may help if you post the zip and unzip jobs (jcl and control statements).
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: PKZIP and PKUNZIP

Postby satlab » Fri Oct 31, 2008 8:33 pm

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
satlab
 
Posts: 12
Joined: Tue Oct 07, 2008 11:04 pm
Has thanked: 0 time
Been thanked: 0 time

Re: PKZIP and PKUNZIP

Postby dick scherrer » Sat Nov 01, 2008 1:17 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: PKZIP and PKUNZIP

Postby satlab » Fri Nov 14, 2008 11:01 pm

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.
satlab
 
Posts: 12
Joined: Tue Oct 07, 2008 11:04 pm
Has thanked: 0 time
Been thanked: 0 time


Return to All other Mainframe Topics

 


  • Related topics
    Replies
    Views
    Last post