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

zipping files on mainframes


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
amit039

New User


Joined: 08 Jul 2008
Posts: 7
Location: Chennai

PostPosted: Mon Sep 08, 2008 6:04 pm
Reply with quote

Hi all,

Can anyone point out any utility on mainframes in order to zip a number of files together. It will be better if someone can point out a solution that doesn't involve some licensed software as PKZIP.

Thanks in anticipation.. icon_smile.gif
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 Sep 08, 2008 6:08 pm
Reply with quote

The mainframe does not come with any zipping software. You can pick up GZIP and GUNZIP which are open source. You could alternatively use pax or tax in Unix System Services. Or, you can pay the license fee for PKZIP, ZIP-390, INFO-ZIP and use them.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Sep 08, 2008 11:52 pm
Reply with quote

what about a dfdss dump/copy with the compress option
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: Tue Sep 09, 2008 12:04 am
Reply with quote

enrico, it depends on what is desired by the o/p ... merely compressing the output file, in which case DFDSS DUMP/COPY with COMPRESS would be the way to go, or producing a zip file that can be read on other platforms which I don't believe DFDSS DUMP/COPY with COMPRESS can generate. Zip file formats can be quite specific. For example, gunzip cannot unzip a .ZIP file.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Tue Sep 09, 2008 12:09 am
Reply with quote

since the OP was asking to junk a lots of file together,
I assumed he was not in a cross platform environment

but as usual, a generic question, gets most of the times generic answers,
and usually the wrong ones icon_biggrin.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Tue Sep 09, 2008 11:51 am
Reply with quote

What about the utility program for sending dumps etc. into IBM, PGM=TRSMAIN - usually get a decent compression ratio from that.

Code:

//*                                                         
//TRSMAIN  EXEC PGM=TRSMAIN,PARM=PACK UNPACK               
//SYSPRINT DD SYSOUT=*                                     
//INFILE   DD DISP=SHR,DSN=xxxxxxx
//OUTFILE  DD DISP=(NEW,CATLG),DSN=xxxxxxx.TRSMAIN,
//            SPACE=(TRK,(750,150),RLSE),                   
//            RECFM=FB,LRECL=1024                           
Back to top
View user's profile Send private message
amit039

New User


Joined: 08 Jul 2008
Posts: 7
Location: Chennai

PostPosted: Tue Sep 09, 2008 3:33 pm
Reply with quote

Hi all,

Thanks for Ur suggestions..The transfer is a cross platform transfer..I'm trying to use Gzip & Gunzip for zipping.. icon_smile.gif
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: Tue Sep 09, 2008 4:51 pm
Reply with quote

GZIP and GUNZIP unfortunately only work on one file ... you may need to use tar to create a single file from the multiple files and then GZIP the tarball.
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts SH256/MD5 Checksum in Mainframes JCL JCL & VSAM 14
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Compare only first records of the fil... SYNCSORT 7
Search our Forums:

Back to Top