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
 

 

Unzip .gz file using Mainframe

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Wed Oct 13, 2010 8:01 am    Post subject: Unzip .gz file using Mainframe
Reply with quote

Hi,

I need to unzip the Unix files ending with .gz format and ftp them to mainframe. In Unix I use gunzip command but due to file size most of the times the command fails. So i wanted to know is there any option to unzip the .gz file present in Unix server and then ftp them to mainframe.

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

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Oct 13, 2010 8:07 am    Post subject:
Reply with quote

Hello,

You do realize that unzipping the files before the ftp will caus much more data to be transferred. . . icon_confused.gif

Quote:
In Unix I use gunzip command but due to file size most of the times the command fails.
Is this because of insufficient space or some other reason? How were the original files build if there is insufficient space?

Quote:
So i wanted to know is there any option to unzip the .gz file present in Unix server and then ftp them to mainframe.
The files can be "unzipped" using the same product that compressed them.

So far this does not appear to be a mainframe issue?
Back to top
View user's profile Send private message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Wed Oct 13, 2010 8:34 am    Post subject: Reply to: Unzip .gz file using Mainframe
Reply with quote

Yes this isn't a mainframe issue. But i dont want to run behind Unix developers each time i need to unzip files.

SO wanted to know options available in mainframe to either unzip and ftp or ftp and then unzip.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Wed Oct 13, 2010 8:57 am    Post subject:
Reply with quote

Hello,

You need to talk with your system support people to learn which compression/decompression tools are available on the mainframe. There are multiple products and the selection from these are site-specific.

Personally, i'd look for a solution that ftp'ed the compressed data and decompressed it on the mainframe.
Back to top
View user's profile Send private message
rz061m

New User


Joined: 03 Mar 2006
Posts: 48
Location: Chennai

PostPosted: Wed Oct 13, 2010 10:33 am    Post subject: Reply to: Unzip .gz file using Mainframe
Reply with quote

In our systme we have someting called PKZIP, any sample code or options on how using it for files with .gz format.
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: Wed Oct 13, 2010 12:17 pm    Post subject:
Reply with quote

You need to find out if the two products are compatible. I believe that .gz files are unique to UNIX.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Wed Oct 13, 2010 2:47 pm    Post subject: Reply to: Unzip .gz file using Mainframe
Reply with quote

PKZIP can handle gzip (.gz) file de-compression.

According to the manual:

UNZIP processing in PKZIP will automatically detect the GZIP header and process it accordingly.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8118
Location: East Dubuque, Illinois, USA

PostPosted: Wed Oct 13, 2010 4:14 pm    Post subject:
Reply with quote

It sounds like you need to work with your site support group to define a mount point with space to handle the gunzip on the mainframe. Gzip and gunzip are available for Unix System Services under z/OS so sending the compressed files and then expanding them would be the preferred approach.
Back to top
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Thu Oct 14, 2010 6:48 am    Post subject:
Reply with quote

GZIP for the mainframe can be found on the internet.
http://www.gzip.org/
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
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Mainframe Opening in Chennai ( 2 to 4... muralikrishnan_new Mainframe Jobs 0 Tue Jul 18, 2017 2:20 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm


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