Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8154
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: 10308
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: 8154
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: 10308
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: 8154
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 Comparing 2 Files using Current time arunsoods DFSORT/ICETOOL 5 Fri Sep 22, 2017 6:00 pm
No new posts Split 1 file into 10 output Files - S... Prasanth Kumar SYNCSORT 5 Sat Sep 16, 2017 12:02 am
No new posts Join records from 2 files with No Dup... Poha Eater DFSORT/ICETOOL 21 Sun Aug 27, 2017 10:35 pm
No new posts Match two files using multiple keys a... santoshks1987 SYNCSORT 11 Fri Aug 18, 2017 10:50 am
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us