View previous topic :: View next topic |
Author |
Message |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 10:33 am Post subject: PKZIP the tape file |
|
|
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 |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Tue Jun 20, 2006 10:47 am Post subject: |
|
|
Standard-label (SL) or Non-labeled (NL)? |
|
Back to top |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 12:29 pm Post subject: |
|
|
NL |
|
Back to top |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 12:32 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Jun 20, 2006 12:42 pm Post subject: |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Jun 20, 2006 12:45 pm Post subject: |
|
|
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 |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 12:53 pm Post subject: |
|
|
-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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Jun 20, 2006 1:09 pm Post subject: |
|
|
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 |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 1:12 pm Post subject: |
|
|
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 |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 1:51 pm Post subject: |
|
|
But it is not compressing ...no compression details..... |
|
Back to top |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 2:03 pm Post subject: |
|
|
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 |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 2:43 pm Post subject: |
|
|
Hi Kolusu,
I am waiting for your updates. Please help me out. Thanks,Sattia |
|
Back to top |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
Posted: Tue Jun 20, 2006 2:51 pm Post subject: |
|
|
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 |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 2:57 pm Post subject: |
|
|
Anyway Thanks for your help!!! |
|
Back to top |
|
 |
sattia Beginner
Joined: 20 Jun 2006 Posts: 13 Topics: 3
|
Posted: Tue Jun 20, 2006 4:07 pm Post subject: |
|
|
Please let me know if you find something.
Thanks,
Sattia |
|
Back to top |
|
 |
|
|