Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

PKZIP issue in compressing large file.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 64

PostPosted: Mon Aug 11, 2014 12:16 am    Post subject: PKZIP issue in compressing large file.
Reply with quote

Hi,

I am trying to compress a large file using PKZIP utility. Though I am allocating the compressed output file to tape, the job is failing with SB37 on a temporary file. When I tried to add space for the temporary file, the compressed file is not able to be unzipped. I am using the below commands for compressing the dataset.

-ECHO
-ARCHIVE_OUTFILE(ARCH01)
-ARCHMCLASS(Y28NE)
-ARCHTYPE(FB)
-DATA_TYPE(TEXT)
-ZIPPED_DSN(PRE.X100.PREM.INFILE,prem_file.txt)
PRE.X100.PREM.INFILE
/*
//ARCH01 DD DSN=PRE.X100.PREM.INFILE.ZIP,
// DISP=(NEW,CATLG,DELETE),UNIT=TAPE

The job is giving an error, ZPFM121E. B37 error on the temporary file.

When I googled, I got that we can add additional space to temporary file by giving, -TEMPxxxx or //ARCHTEMP DD statement. I tried with //ARCHTEMP DD UNIT=TEMPDA,SPACE=(CYL,(300,300),RLSE) but still the job failed with B37.

I am not aware of the syntax of -TEMP.

Please help me.

Thanks,
Ravi
Back to top
View user's profile Send private message

PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Mon Aug 11, 2014 12:53 pm    Post subject:
Reply with quote

It's all in the PKZIP manual.
Back to top
View user's profile Send private message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 64

PostPosted: Thu Aug 14, 2014 4:50 pm    Post subject:
Reply with quote

I did refer to the manuals and found the usage of -TEMP commands and I did the below changes to the control card,

-ECHO
-ARCHIVE_OUTFILE(ARCH01)
-ARCHMCLASS(Y28NE)
-ARCHTYPE(FB)
-DATA_TYPE(TEXT)
-TEMP_MGMTCLASS(Y28NE)
-TEMP_VOLUMES((,,,99)
-ZIPPED_DSN(PRE.X100.PREM.INFILE,prem_file.txt)
PRE.X100.PREM.INFILE
/*
//ARCH01 DD DSN=PRE.X100.PREM.INFILE.ZIP,
// DISP=(NEW,CATLG,DELETE),UNIT=TAPE

But still the temporary dataset is allocating in work volumes and the job is failing with B37.

When I give space parameters, the job is completing fine, but it is adding some extra bytes to the zipped file
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Thu Aug 14, 2014 5:12 pm    Post subject:
Reply with quote

Just a question, but just how big is this file ?

The objective of tape processing is for very big files. Tapes subsystems also have their own compression routines as does DFSMSsms.

What amount of savings are you looking to achieve, and at what additional CPU cost.
Back to top
View user's profile Send private message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 64

PostPosted: Thu Aug 14, 2014 5:41 pm    Post subject:
Reply with quote

Hi Expat,

The actual file size is around 100 GB and after compressing it comes to 70GB.

There are other files transferred to the same server, with same PKZIP commands, they are successful except one file.
Back to top
View user's profile Send private message
steve-myers

Active User


Joined: 30 Nov 2013
Posts: 460
Location: The Universe

PostPosted: Thu Aug 14, 2014 5:53 pm    Post subject:
Reply with quote

If it is your intent to send this data set to another z/OS system, you should investigate using the TERSE or AMATERSE utilities. These utilities exist on all z/OS systems. I have never encountered issues with data set size with them. TERSE and AMATERSE are documented in MVS Diagnosis: Tools and Service Aids for your z/OS release. They are slow (by this I mean they use a lot of CPU time), but they always work.

I have encountered references to toy machine utilities that expand files created by TERSE or AMATERSE, but I know nothing about them other than the reference.

I share expat's concern about the size of the source data set.

100 GB to 70 GB is pretty lousy compression unless the source data is already compressed in some fashion. My experience with TERSE is 100 GB should compress to about 30 GB.
Back to top
View user's profile Send private message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 64

PostPosted: Sun Aug 17, 2014 1:30 am    Post subject:
Reply with quote

The client requirement is to use PKZIP only.

Please help me in resolving the issue.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2422
Location: Netherlands, Amstelveen

PostPosted: Sun Aug 17, 2014 10:34 am    Post subject:
Reply with quote

Quote:

When I give space parameters, the job is completing fine, but it is adding some extra bytes to the zipped file


And what do you mean by that?

Why -ARCHMCLASS(Y28NE) for tape output?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7904
Location: Bellevue, IA

PostPosted: Mon Aug 18, 2014 3:49 am    Post subject:
Reply with quote

Quote:
When I give space parameters, the job is completing fine, but it is adding some extra bytes to the zipped file
If this is the case, you SHOULD be contacting the vendor and opening a problem ticket; you have wasted a week trying to resolve the issue on this forum. The vendor knows a great deal more about the product than we do, and the vendor can explain the results you are seeing (and fix them if they are wrong).
Back to top
View user's profile Send private message
Ramsee

New User


Joined: 06 Jan 2011
Posts: 52
Location: Chennai

PostPosted: Tue Aug 26, 2014 12:47 pm    Post subject:
Reply with quote

Hi Ravikumar,

You can write up your issue along with the XDC file in an Notepad as an attachment to Kevin Moll [kevin.moll@pkware.com]. He will be able to guide you on this 100 GB to 70 GB Compression.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us