Operating System - OpenVMS
1828482 Members
2672 Online
109978 Solutions
New Discussion

Re: problem unzipping data

 
SOLVED
Go to solution
nipun_2
Regular Advisor

problem unzipping data

Hi I have used the following software to zip data (Note: the data I am having problem is a different format but I have still used the same options)

$ ZIP -9 -R DICOM DICOM_JUNK.DIR
adding dicom_junk/prac.dcm (deflated 18%)
adding dicom_junk/prac1.dcm (deflated 18%)
adding dicom_junk/prac2.dcm (deflated 18%)
adding dicom_junk/prac3.dcm (deflated 18%)
$ DIR

Directory DISK2:[MICROCT.NIPUN.JUNK]

DICOM.ZIP;1 DICOM_JUNK.DIR;1 STREP_TRAB5.TXT;1 STYROFOAM.TXT;1
TEST.ZIP;1 ZIPINFO.TXT;1
$ ZIP
Copyright (C) 1990-1992 Mark Adler, Richard B. Wales, Jean-loup Gailly,
Kai Uwe Rommel and Igor Mandrichenko. Type 'zip -L' for the software license.

Zip 1.9 (Aug 26th 1992). Usage:
zip [-options] [-b path] [-t mmddyy] [-n suffixes] [zipfile list] [-x list]
The default action is to add or replace zipfile entries from list, which
can include the special name - to compress standard input.
If zipfile and list are ommitted, zip compresses stdin to stdout.
-f freshen: only changed files -u update: only changed or new files
-d delete entries in zipfile -m move into zipfile (delete files)
-k simulate PKZIP made zipfile -g allow growing existing zipfile
-h show this help -L show software license
-r recurse into directories -j junk (don't record) directory names
-0 store only -l translate end-of-line
-1 compress faster -9 compress better
-q quiet operation -n don't compress these suffixes
-c add one-line comments -z add zipfile comment
-b use "path" for temp files -t only do files after "mmddyy"
-@ read names from stdin -o make zipfile as old as latest entry
-w append the VMS version number to the name stored in the zip file
-V save VMS file attributes
-x exclude the names that follow from those operated on


When I ftpied a set of "image files" to windows and unzipped them using winzip it worked fine. However, when I tried with a different set of files, I couldn't unzip them.

It says operation failed. Would using PKUZIP help. We often have huge data on OpenVMS that we need to move to Windows machine. So it seems practical to have a reliable method to zip and unzip data.

Any suggestions and comments would be helpful

Nipun
10 REPLIES 10
nipun_2
Regular Advisor

Re: problem unzipping data

An update.
Winzip and Power Archiver didn't work

When I used PKZIP

it gave the following message

Warning: The file has bad table
(W15) Warning The file fails CRC check

Antoniov.
Honored Contributor

Re: problem unzipping data

Hi Nipun,
for me:
1.Update zip version; I use V2.3, I know there is V2.4 avaiable.
2.I never used -9 option, try without it.
3.Try with -j (junk directory name); I think windows may have trouble with vms names.
You can also test with "-T" option.

Antonio Vigliotti
Antonio Maria Vigliotti
Ian Miller.
Honored Contributor

Re: problem unzipping data

early versions of zip on vms are troubled - use V2.3 or V2.4
____________________
Purely Personal Opinion
Willem Grooters
Honored Contributor
Solution

Re: problem unzipping data

We use ZIP(and UNZIP) heavily for transferring data, but probably other versions as you do, and never run into problems:

ZIP:
Copyright (C) 1990-1996 Mark Adler, Richard B. Wales, Jean-loup Gailly
Onno van der Linden, Christian Spieler and Igor Mandrichenko.
Type 'zip "-L"' for software license.
This is Zip 2.1 (April 27th 1996), by Info-ZIP.

UNZIP:
UnZip 5.42 of 14 January 2001, by Info-ZIP. Maintained by C. Spieler. Send

Our files are always zipped with "-V" option, that will preserver the attributes.
Zip files are then FTP'd (binary, of course) to PC, send over the network and FTP'd to VMS again on the other size (again: binary) and unzipped on VMS. It works for any type of file, No problem, whatsoever, unzipping them on Windows either.

The only requirement is proper (that is: binary) tarnsfer from VMS to Windows.
Willem Grooters
OpenVMS Developer & System Manager
Ian Miller.
Honored Contributor

Re: problem unzipping data

those versions are not current.
V2.3 zip, unzip V5.52 (feb 2005)
are obtainable from
http://h71000.www7.hp.com/freeware/freeware70/000tools/alpha_images/
http://h71000.www7.hp.com/freeware/freeware70/000tools/vax_images/
____________________
Purely Personal Opinion
Bojan Nemec
Honored Contributor

Re: problem unzipping data

Nipun,

Heve you used binary mode for ftp? If you use ascii mode when ftp zip files these are corrupted.

Bojan
Jeroen Hartgers_3
Frequent Advisor

Re: problem unzipping data

be sure you have from both zip and unzip the highest version.

unzipping is being done with unzip

unzip

with zip i user always the -v (vms file attributes).

if you transport the file by ftp use always binairy, and do not open the file with winzip, or unzip on a otther OS because you will lose the VMS file attributes
Willem Grooters
Honored Contributor

Re: problem unzipping data



No problem as long as you do not transfer the exported files to VMS (or any other OS), since UNZIP will use that system's filesystem (and therfore, render the files troublesome on other).
In this case, the target system is Windows and extracting the files is no problem. However, be aware that the VMS record attributes can introduce "weird behaviour" on Windows - see http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=908249 for an example.

(BTW, latest verions are preferable, not required)
Willem
Willem Grooters
OpenVMS Developer & System Manager
nipun_2
Regular Advisor

Re: problem unzipping data

Hello all,
Thank again for your help. William I will keep -v option in mind next time I use the zip tool.

I will also consider upgrading to lates zip version.


For now I will follow up on William's suggestion and see how things work. As I have to finally read the files on Windows. I had not mentioned one fact which now I think might be important.

After I had ftpied the files (in binary mode) to windows machine I had burned them directly to a DVD. So I was in the end trying to unzip from the burned files. Could that have any contribution to my problem or should I experiment and find out :).




Nipun
nipun_2
Regular Advisor

Re: problem unzipping data

solved