|
View previous topic :: View next topic
|
| Author |
Message |
rz061m
New User

Joined: 03 Mar 2006 Posts: 48 Location: Chennai
|
|
|
|
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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
You do realize that unzipping the files before the ftp will caus much more data to be transferred. . .
| 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 |
|
 |
rz061m
New User

Joined: 03 Mar 2006 Posts: 48 Location: Chennai
|
|
|
|
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 |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
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 |
|
 |
rz061m
New User

Joined: 03 Mar 2006 Posts: 48 Location: Chennai
|
|
|
|
| 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 |
|
 |
expat
Global Moderator

Joined: 14 Mar 2007 Posts: 8798 Location: Welsh Wales
|
|
|
|
| You need to find out if the two products are compatible. I believe that .gz files are unique to UNIX. |
|
| Back to top |
|
 |
superk
Global Moderator

Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
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 |
|
 |
Robert Sample
Global Moderator

Joined: 06 Jun 2008 Posts: 8700 Location: Dubuque, Iowa, USA
|
|
|
|
| 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 |
|
 |
jon_s_rice
Active User

Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
GZIP for the mainframe can be found on the internet.
www.gzip.org/ |
|
| Back to top |
|
 |
|
|