1753781 Members
7579 Online
108799 Solutions
New Discussion юеВ

Re: Zip in VMS

 
SOLVED
Go to solution
Wim Van den Wyngaert
Honored Contributor

Re: Zip in VMS

Try

zip/vms bc23backup.zip krSHNA$DKA100:[WORK...]*.* /exclude=(*.lis,*.
exe,*.zip,*.map)
Wim
Deepak kumar_3
Frequent Advisor

Re: Zip in VMS

No it is not working.

zip/vms "-V9" bc23backup.zip krSHNA$DKA100:[WORK.bc3.0...]*.* /exclude=(*.lis
,*.exe,*.map,*.obj,*.objd)

zip warning: name not matched: bc23backup.zip
zip warning: name not matched: /exclude=(*.lis,*.exe,*.map,*.obj,*.objd)
adding: 27JAN.SAVESET (deflated 17%)
adding: [.BR] (stored 0%)
adding: [.BUILD] (stored 0%)
adding: [.BUILD09] (stored 0%)
adding: [.BUILD10] (stored 0%)
adding: [.BUILD11] (stored 0%)
adding: [.BUILD]CLUSTERNAME.EXE (deflated 68%)
adding: [.BUILD]HOSTINFO.EXE (deflated 71%)

Wim Van den Wyngaert
Honored Contributor

Re: Zip in VMS

without "-V9"
-V = /vms
-9 = /level=9, will use more cpu to compress a little more. I would use /level=1 and default is 6.

If not working, do zip and tell us what version you are using.
Wim
Deepak kumar_3
Frequent Advisor

Re: Zip in VMS

$ zip
Copyright (C) 1990-1999 Info-ZIP
Type 'zip "-L"' for software license.
Zip 2.3 (November 29th 1999).
Deepak kumar_3
Frequent Advisor

Re: Zip in VMS

Should i download new zip exe if yes from where i can
Wim Van den Wyngaert
Honored Contributor

Re: Zip in VMS

I'm using 2.1 but that should not be the problem.
Did you try
zip/vms bc23backup.zip krSHNA$DKA100:[WORK.bc3.0...] /exclude=(*.lis,*.exe,*.map,*.obj,*.objd)

WITHOUT the unix mode qualifiers ?
(My version is not accepting them)
Wim
Antoniov.
Honored Contributor

Re: Zip in VMS

Hi Deepak,
zip use unix style qualifier.
I guess your command mey be this:

zip "-V9" bc23backup.zip krSHNA$DKA100:[WORK.BC3.0...]*.* krSHNA$DKA100:[WORK...]-x *.lis,*.exe,*.map,*.obj,*.objd

Best Regards
Antonio Vigliotti
Antonio Maria Vigliotti
Martin P.J. Zinser
Honored Contributor
Solution

Re: Zip in VMS

Hello Deepak,

there has been quite a bit of confusion here
concerning zip commandline syntax. Zip can actually be build with a DCL style interface (/level=9 etc.) or the Unix style interface (-9). One important thing to note is that you can not mix and match the two interfaces. You either have to use all DCL or all Unix qualifiers.

Antonio gave you the right answer

zip "-9V" file.zip disk:[dir...]*.* -x *.ext1 *.ext2

will give the result you want. Attention: You do need the quotes around "-9V" ! Else the uppercase V will end-up eventually as a lowercase v when parsed by Zip and cause verbose operation instead of saving VMS file attributes.

Greetings, Martin
Deepak kumar_3
Frequent Advisor

Re: Zip in VMS

Hi All,

Its worked after Martin suggestion ie previously we are giving dcl -x command with comma's which was creating a problem so commas are not required in DCL command.

Deepak