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

Unzipping a file using ZIP390


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Tue Oct 15, 2013 9:01 pm
Reply with quote

I have to unzip a file which is kept over UNIX partition on mainframe.
For this I copy this file to MVS dataset using OGET commannd. That went ok.
And then I tried to unzip this file by giving below parms

ACTION=UNZIP
MODE=BINARY
ARCHIVE=SEQ/AFILE
OFILE=SEQ/UNZIPF1

But its getting an ABENDU0008 saying
ZIPAPI failed error (-3), ACTION: INFLATE
Data corrupted.
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: Tue Oct 15, 2013 9:54 pm
Reply with quote

Hello,

Do you have the "footprints" where the file was succesflly zipped?
Back to top
View user's profile Send private message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Tue Oct 15, 2013 10:10 pm
Reply with quote

Yes Dick,

only i zipped this file and kept over the UNIX. Involved in testing so just checking. for Zipping i used below parms

ARCHIVE=SEQ/ZIPNOUTF
MODE=BINARY
ACTION=ZIP,ADD
IFILE=BSEQ/ZIPNIB01;filename1

Note- Used ZIP390 here as well
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: Tue Oct 15, 2013 10:15 pm
Reply with quote

Hello,

Are you able to unzip the file in UNIX?
Back to top
View user's profile Send private message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Tue Oct 15, 2013 10:15 pm
Reply with quote

one more interesting thing is that when i used the MVS zipped file thus created through my JCL,I was able to unzip that by giving the same parms. But after putting this file to UNIX and then again creating a MVS file from there , I am unable to unzip that. And the abend came like I explained above.

This seems the while copying the file from UNIX to MVS the file is getting changed.
Back to top
View user's profile Send private message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Tue Oct 15, 2013 10:20 pm
Reply with quote

Ok I am sorry if any confusion caused, But I am not unzipping it in UNIX. I am only keeping that file to UNIX HFS in Mainframe. And trying to copy it again to MVS dataset and then unzipping it.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Oct 15, 2013 10:37 pm
Reply with quote

Like FTP, OGET has BINARY and TEXT options -- a ZIP file would need the BINARY option instead of the default TEXT.
Back to top
View user's profile Send private message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Tue Oct 15, 2013 11:02 pm
Reply with quote

Hi Robert,

Can you tell me the exact command for OGET BINARY option.

Right now I using

OGET '/ABC/file1.zip' 'MVSdataset.G0014V00'
Back to top
View user's profile Send private message
janmejay
Warnings : 1

New User


Joined: 22 Jun 2007
Posts: 85
Location: bangalore

PostPosted: Tue Oct 15, 2013 11:20 pm
Reply with quote

Thanks Robert I tried the way you suggested and it worked , i am able to unzip it.
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: Tue Oct 15, 2013 11:27 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Wed Oct 16, 2013 12:42 am
Reply with quote

Great -- glad to hear you got it working.
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 FTP VB File from Mainframe retaining ... JCL & VSAM 4
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
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
Search our Forums:

Back to Top