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
 

 

zipping files on mainframes

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: zipping files on mainframes
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Mon Sep 08, 2008 6:08 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Mon Sep 08, 2008 11:52 pm    Post subject: Reply to: zipping files on mainframes
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 09, 2008 12:04 am    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Tue Sep 09, 2008 12:09 am    Post subject: Reply to: zipping files on mainframes
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: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 09, 2008 11:51 am    Post subject:
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    Post subject:
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 09, 2008 4:51 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Unable to create multiple files using... mbattu COBOL Programming 3 Fri May 05, 2017 5:35 pm
This topic is locked: you cannot edit posts or make replies. Merge two files and update Trailer re... Yashashri JCL & VSAM 1 Thu May 04, 2017 12:54 pm
No new posts Dynamic split of files under groups sril.krishy DFSORT/ICETOOL 4 Mon Apr 17, 2017 1:09 pm
No new posts Compare two files and subtract values ameetmund DFSORT/ICETOOL 7 Fri Mar 31, 2017 3:35 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm


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