View previous topic :: View next topic
|
Author |
Message |
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Do you have the "footprints" where the file was succesflly zipped? |
|
Back to top |
|
|
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Are you able to unzip the file in UNIX? |
|
Back to top |
|
|
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
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 |
|
|
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Like FTP, OGET has BINARY and TEXT options -- a ZIP file would need the BINARY option instead of the default TEXT. |
|
Back to top |
|
|
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
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 |
|
|
janmejay Warnings : 1 New User
Joined: 22 Jun 2007 Posts: 85 Location: bangalore
|
|
|
|
Thanks Robert I tried the way you suggested and it worked , i am able to unzip it. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Good to hear it is working - thank you for letting us know
d |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
Great -- glad to hear you got it working. |
|
Back to top |
|
|
|