MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

PKZIP the tape file

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities
View previous topic :: View next topic  
Author Message
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 10:33 am    Post subject: PKZIP the tape file Reply with quote

Hi,

I need to compress the file which is stored in tape and write the compressed file into disk using PKZIP utility.

I ran this step, but it is working for disk files but tape.
Code:

//STEP41   EXEC PGM=PKZIP,REGION=0M
//SYSPRINT DD  SYSOUT=*
//DATAFILE DD  DSN=ARET.XX.TAPE,
//             DISP=SHR
//ZIPFILE  DD  DSN=ARET.YY.ZIP,
//             DISP=(NEW,CATLG),
//             UNIT=SYSDA,
//             DCB=(RECFM=U,DSORG=PS,BLKSIZE=(32465))
//SYSIN    DD  *
-ECHO
-ARCHIVE_OUTFILE(ZIPFILE)
-INFILE(DATAFILE)
-COMPRESSION_LEVEL(SUPERFAST)
-GZIP
-DATA_TYPE(BINARY)
-SAVE_LRECL(Y)
/*

Please help me.

Thanks,
Sattia
Back to top
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Tue Jun 20, 2006 10:47 am    Post subject: Reply with quote

Standard-label (SL) or Non-labeled (NL)?
Back to top
View user's profile Send private message
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 12:29 pm    Post subject: Reply with quote

NL
Back to top
View user's profile Send private message
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 12:32 pm    Post subject: Reply with quote

I tried this code
Code:

//STEP41   EXEC PGM=PKZIP,REGION=0M
//SYSPRINT DD  SYSOUT=*
//TAPEIN   DD  DSN=A021721.SPH30490.EOWL2.TNDREXTR.TAPE,
//             UNIT=TAPE,
//             LABEL=(1,NL),
//             DCB=(RECFM=FB,LRECL=755,BLKSIZE=(32465)),
//             DISP=OLD
//SYSIN    DD  *
-ARCHIVE(A021721.OUT)
-INFILE(TAPEIN)

But this is also not working.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 20, 2006 12:42 pm    Post subject: Reply with quote

sattia,

Non labeled tapes do not contain DCB(lrecl,recfm,blksize) information that PKZIP is looking for compressing. So you need to add the DCB info on the DD statement.
Code:

//DATAFILE DD  DSN=ARET.XX.TAPE,
//             DISP=SHR,
//             UNIT=TAPE,LABEL=(1,NL),
//             DCB=(LRECL=nnn,RECFM=yy,BLKSIZE=aaaaa)             


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 20, 2006 12:45 pm    Post subject: Reply with quote

Quote:

But this is also not working.


What are the error messages you are getting?

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 12:53 pm    Post subject: Reply with quote

-ARCHIVE(A021721.OUT)
-INFILE(TAPEIN)
ZPAM030I OUTPUT Archive opened: A021721.OUT
ZPMT002I PKZIP processing complete. RC=00000000 0(Dec)

PKZIP processing completes without any error message. But it is not compressing data. No compression information.

This is the info i am getting while compressing disk dataset

-ECHO
-ARCHIVE_OUTFILE(ZIPFILE)
-INFILE(DATAFILE)
-COMPRESSION_LEVEL(SUPERFAST)
-GZIP
-DATA_TYPE(BINARY)
-SAVE_LRECL(Y)
ZPAM030I OUTPUT Archive opened: ARET.XX.disk.ZIP
ZPAM253I ADDED File A021721.XX.disk
ZPAM254I as ARET/xx/disk
ZPAM152I Compressed size: X"0000000000000C00", Uncompressed size: X"000000000001
ZPAM255I (DEFLATED 97%/97%)
ZPMT002I PKZIP processing complete. RC=00000000 0(Dec)
******************************** BOTTOM OF DATA ********************************

I tried to unzip the file a021721.out
I am getting this error message
-ECHO
-ARCHINDD(ARCHIN)
-OUTDD(ARCHOUT)
-DATA_TYPE(BINARY)
ZPAM030I INPUT Archive opened: A021721.OUT
ZPAM091W Nothing to do! File selection did not match any files in Archive.
ZPTM002I SUBTASK ( 3) EP: ACAMGR Ended - TCB: 008CB848 Comp: 00000004
ZPMT002I PKZIP processing complete. RC=00000004 4(Dec)
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 20, 2006 1:09 pm    Post subject: Reply with quote

Quote:

ARCHIVE(A021721.OUT)
-INFILE(TAPEIN)


In your JCL you have assigned the tape file to Datafile DD. Correct that.

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 1:12 pm    Post subject: Reply with quote

My jcl
Code:

//STEP41   EXEC PGM=PKZIP,REGION=0M
//SYSPRINT DD  SYSOUT=*
//TAPEIN   DD  DSN=ARET.XX.TAPE,
//             UNIT=TAPE,
//             LABEL=(1,NL),
//             DCB=(RECFM=FB,LRECL=755,BLKSIZE=(32465)),
//             DISP=OLD
//ZIPFILE  DD  DSN=ARET.XX.ZIP,
//             DISP=(NEW,CATLG),
//             SPACE=(CYL,(100,50),RLSE),
//             DCB=(RECFM=U,DSORG=PS,BLKSIZE=(32465))
//SYSIN    DD  *
-ECHO
-ARCHIVE_OUTFILE(ZIPFILE)
-INFILE(TAPEIN)
-COMPRESSION_LEVEL(SUPERFAST)
-GZIP
-DATA_TYPE(BINARY)
-SAVE_LRECL(Y)
/*

output
Code:

-ECHO
-ARCHIVE_OUTFILE(ZIPFILE)
-INFILE(TAPEIN)
-COMPRESSION_LEVEL(SUPERFAST)
-GZIP
-DATA_TYPE(BINARY)
-SAVE_LRECL(Y)
ZPAM030I OUTPUT Archive opened:  ARET.XX.ZIP
ZPMT002I PKZIP processing complete.      RC=00000000        0(Dec)
Back to top
View user's profile Send private message
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 1:51 pm    Post subject: Reply with quote

But it is not compressing ...no compression details.....
Back to top
View user's profile Send private message
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 2:03 pm    Post subject: Reply with quote

view detail is showing

-ARCHIVE(ARET.XX.ZIP)
-ACTION(VIEWDETAILNAME)
ZPAM030I INPUT Archive opened: ARET.XX.ZIP
ZPAM014I There are 0 file(s) in the input Archive.
ZPAM012I ZIP comment: PKZIP MVS by Ascent Solutions
ZPAM013I *********************************************************************
ZPAM390W No files matched View selection.
ZPTM002I SUBTASK ( 3) EP: ACAMGR Ended - TCB: 008CB848 Comp: 00000004
ZPMT002I PKZIP processing complete. RC=00000004 4(Dec)
******************************** BOTTOM OF DATA ******************************
Back to top
View user's profile Send private message
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 2:43 pm    Post subject: Reply with quote

Hi Kolusu,

I am waiting for your updates. Please help me out. Thanks,Sattia
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Jun 20, 2006 2:51 pm    Post subject: Reply with quote

Quote:

I am waiting for your updates. Please help me out. Thanks,Sattia


sattia,

If I knew something I would post it. However I don't know what is wrong .

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 2:57 pm    Post subject: Reply with quote

Anyway Thanks for your help!!!
Back to top
View user's profile Send private message
sattia
Beginner


Joined: 20 Jun 2006
Posts: 13
Topics: 3

PostPosted: Tue Jun 20, 2006 4:07 pm    Post subject: Reply with quote

Please let me know if you find something.

Thanks,
Sattia
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Utilities All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group