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
 

 

Unzipping a file using ZIP390

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

New User


Joined: 22 Jun 2007
Posts: 81
Location: bangalore

PostPosted: Tue Oct 15, 2013 9:01 pm    Post subject: Unzipping a file using ZIP390
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

Site Director


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

PostPosted: Tue Oct 15, 2013 9:54 pm    Post subject:
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: 81
Location: bangalore

PostPosted: Tue Oct 15, 2013 10:10 pm    Post subject:
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

Site Director


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

PostPosted: Tue Oct 15, 2013 10:15 pm    Post subject:
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: 81
Location: bangalore

PostPosted: Tue Oct 15, 2013 10:15 pm    Post subject:
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: 81
Location: bangalore

PostPosted: Tue Oct 15, 2013 10:20 pm    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Tue Oct 15, 2013 10:37 pm    Post subject:
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: 81
Location: bangalore

PostPosted: Tue Oct 15, 2013 11:02 pm    Post subject:
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: 81
Location: bangalore

PostPosted: Tue Oct 15, 2013 11:20 pm    Post subject:
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

Site Director


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

PostPosted: Tue Oct 15, 2013 11:27 pm    Post subject:
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: 7904
Location: Bellevue, IA

PostPosted: Wed Oct 16, 2013 12:42 am    Post subject:
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    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 Add PD field from 2nd file to PD in 1st Sushant Garje DFSORT/ICETOOL 6 Thu Dec 01, 2016 4:32 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts How to convert the VBM file to VB or... Sulabh Agrawal JCL & VSAM 4 Fri Nov 18, 2016 1:04 pm
No new posts CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm


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