1752809 Members
6284 Online
108789 Solutions
New Discussion юеВ

Zip in VMS

 
SOLVED
Go to solution
Deepak kumar_3
Frequent Advisor

Zip in VMS

Hi,

How to zip files and sub-directory in Open
VMS.

Deepak
18 REPLIES 18
Wim Van den Wyngaert
Honored Contributor

Re: Zip in VMS

If you want to keep the file characteristics (e.g. indexed file), use zip/vms. Otherwise you get unix files (stream).

Zip doesn't accept directory specs as VMS does. Use *.*/recurs to go down to all directories.

Wim
Wim
Uwe Zessin
Honored Contributor

Re: Zip in VMS

You use standard OpenVMS syntax for paths:

$ zip "-V9" COM.ZIP [...]*.COM
.
Wim Van den Wyngaert
Honored Contributor

Re: Zip in VMS

Also check this
http://www.djesys.com/vms/support/powerpnt/zipunzip.ppt

And note that for big zip that /level=1 is faster and compresses sufficiently.
Wim
Deepak kumar_3
Frequent Advisor

Re: Zip in VMS

Hi ,

But in sudirectories i do't want all the files in zip for example .lis,.map and should i give /exclude=(.map,*.lis) qualifier

Deepak
Uwe Zessin
Honored Contributor

Re: Zip in VMS

I think the '-x' option is what you want.
.
Wim Van den Wyngaert
Honored Contributor

Re: Zip in VMS

Ignore my /recurs remark. Std VMS syntax is accepted but the zip archive itself may not be in the list itself (will result in internal logic error). Also .dir;2 files result in internal errors. Open files will result in "no such file" + "could not open for reading" messages. Ign=interlock is not available.
Wim
Deepak kumar_3
Frequent Advisor

Re: Zip in VMS

I am trying
zip -r9V bc23backup.zip -x krSHNA$DKA100:[WORK...]*.* /exclude=(*.lis,*.
exe,*.zip,*.map)

its giving error
zip error: Invalid command arguments (nothing to select from)
Uwe Zessin
Honored Contributor

Re: Zip in VMS

See '$ zip -h' for help. The '-x' option must be at the end. You must enclose the '-V' option in '"' signs, or the CRTL will change it, so use '"-r9V"'. Are you allowed to mix Unix and VMS-style options?
.
Deepak kumar_3
Frequent Advisor

Re: Zip in VMS

it is not excluding *.map,*.lis,*.obj
i have given command
zip "-V9" bc23backup.zip krSHNA$DKA100:[WORK.BC3.0...]*.* krSHNA$DKA100:[WORK...]*.lis,*.exe,*.map,*.obj,*.objd -x

adding: [.BUILD09.OSVM]LOGGER.LIS (deflated 79%)
adding: [.BUILD09.OSVM]LOGGER.OBJ (deflated 83%)

where i am going worng