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: 4648
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: 7935
Location: Bellevue, IA

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
No new posts SORTJOIN - Copy Matched and Unmatched... Steve Ironmonger DFSORT/ICETOOL 5 Tue Jan 17, 2017 4:26 pm
No new posts Produce Mainframe Dash Board Reports ... sdcarlson53 All Other Mainframe Topics 2 Thu Jan 05, 2017 11:01 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
This topic is locked: you cannot edit posts or make replies. Urgent Mainframe Requirments (2-10 yr... Shankar779 Mainframe Jobs 0 Sun Nov 27, 2016 1:48 pm


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