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

Unzip .gz file using Mainframe


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Wed Oct 13, 2010 8:07 am
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
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

Moderator Emeritus


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

PostPosted: Wed Oct 13, 2010 8:57 am
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Oct 13, 2010 12:17 pm
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

Global Moderator


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

PostPosted: Wed Oct 13, 2010 2:47 pm
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 13, 2010 4:14 pm
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
Reply with quote

GZIP for the mainframe can be found on the internet.
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
Search our Forums:

Back to Top