IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

PKZIP issue in compressing large file.


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
ravikumar15

New User


Joined: 27 Mar 2006
Posts: 68

PostPosted: Mon Aug 11, 2014 12:16 am
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Mon Aug 11, 2014 12:53 pm
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: 68

PostPosted: Thu Aug 14, 2014 4:50 pm
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: 8797
Location: Welsh Wales

PostPosted: Thu Aug 14, 2014 5:12 pm
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: 68

PostPosted: Thu Aug 14, 2014 5:41 pm
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 Member


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

PostPosted: Thu Aug 14, 2014 5:53 pm
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: 68

PostPosted: Sun Aug 17, 2014 1:30 am
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: 2481
Location: Netherlands, Amstelveen

PostPosted: Sun Aug 17, 2014 10:34 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Mon Aug 18, 2014 3:49 am
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: 53
Location: Chennai

PostPosted: Tue Aug 26, 2014 12:47 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
Search our Forums:

Back to Top