1753768 Members
5480 Online
108799 Solutions
New Discussion юеВ

Re: Unzip in VMS Query

 
CO_5
Advisor

Unzip in VMS Query

hello,

i have below issue. anyone knows why ?

$ MOUNT $12$DQA0: PROM58
%MOUNT-I-WRITELOCK, volume is write locked
%MOUNT-I-MOUNTED, PROM58 mounted on _$12$DQA0: (PROMSE)
$
Device Device Error Volume Free Trans Mnt
Name Status Count Label Blocks Count Cnt
$1$DGA100: (PROMSE) Mounted 0 I64SYS_V83 56324304 350 2
$1$DGA101: (PROMSE) Mounted 0 QUORUM 4192640 1 2
$1$DGA200: (PROMSE) Mounted 0 DATA1 729789632 1 2
$1$DGA300: (PROMSE) Mounted 0 DATA2 566221856 1 2
$12$DKA0: (PROMSE) Online 0
$12$DKA100: (PROMSE) Online 0
$12$DQA0: (PROMSE) Mounted alloc 0 PROM58 14064 1 1
wrtlck
$12$DQA1: (PROMSE) Offline 1

Device Device Error Volume Free Trans Mnt
Name Status Count Label Blocks Count Cnt
PROMSE$MKB400: Online 0

Device Device Error
Name Status Count
OPA0: Online 0
ASN0: Online 0
FTA0: Offline 0
KBD0: Online 0
RTA0: Offline 0

$ UNZIP:==$12$DQA0:[000000]UNZIP
$ UNZIP $12$DQA0:[000000]PROM58 /QUIET/OVERWRITE
%DCL-W-ACTIMAGE, error activating image 12$DQA0:[000000]UNZIP
-CLI-E-IMGNAME, image file 12$DQA0:[000000]UNZIP.EXE;
-RMS-F-DEV, error in device name or inappropriate device type for operation

thks,
CO
17 REPLIES 17
Thomas Ritter
Respected Contributor

Re: Unzip in VMS Query

Try

UNZIP:==$$12$DQA0:[000000]UNZIP
Robert Gezelter
Honored Contributor

Re: Unzip in VMS Query

CO,

I concur with Thomas. The symbol assignment for UNZIP needs a preceding "$".

- Bob Gezelter, http://www.rlgsc.com
Steven Schweda
Honored Contributor

Re: Unzip in VMS Query

Yeah. The "-h" help for UnZip says something
like:

=> define foreign command symbol in LOGIN.COM: $ unzip :== $dev:[dir]unzip.exe

I'll try to get a space inserted to make the
"$" look more like a separate token. For
example, newer Zip "-h" says:

[...] Usage: zip == "$ disk:[dir]zip.exe"

People with disk names beginning with "$"
tend to see that "$" as part of the disk
device name, which it's not. I'm hoping that
the new space will help (a little, at least).
Willem Grooters
Honored Contributor

Re: Unzip in VMS Query

All above correct, just an addition

$12$DQA0: is the disk itself - inclusing allocation class (12). If unique, you could have used the device without allocation class, it should work as well:

$ UNZIP :== $DQA0:[000000]UNZIP

In most cases, you'd better avoid physical devices and use the label specified in MOUNT:

$ UNZIP :== $PROM58:[000000]UNZIP

Another way to avoid the "double-dollar symdrome" is to use the (old, PDP-based, not-really-documented, but well known and often used) "MCR" command:

$ UNZIP :== MCR PROM58:[000000]UNZIP


WG
Willem Grooters
OpenVMS Developer & System Manager
Jon Pinkley
Honored Contributor

Re: Unzip in VMS Query

++++++++++++
In most cases, you'd better avoid physical devices and use the label specified in MOUNT:

$ UNZIP :== $PROM58:[000000]UNZIP
++++++++++++

Shouldn't that have been "the logical name created by MOUNT:"?

$ UNZIP :-- $DISK$PROM58:[000000]UNZIP

The default value for f$getdvi("$12$DQA0:","LOGVOLNAM") would be DISK$PROM58 given f$getdvi("$12$DQA0:","VOLNAM") was PROM58.
it depends
Jon Pinkley
Honored Contributor

Re: Unzip in VMS Query

Well I had a typo myself :--

$ UNZIP :== $DISK$PROM58:[000000]UNZIP

Jon
it depends
CO_5
Advisor

Re: Unzip in VMS Query

guys,

bumped into this method...it works after put in the -q -o rather than /overwrite/quiet

with or without the $, it seems no much difference.


Username: PROM58
Password:
HP OpenVMS Industry Standard 64 Operating System, Version V8.3 on node PROMSE
Last interactive login on Wednesday, 26-SEP-2007 11:20:49.40
$ SET PROC/PRIV=ALL
$ MOUNT DQA0: PROM58
%MOUNT-I-WRITELOCK, volume is write locked
%MOUNT-I-MOUNTED, PROM58 mounted on _$12$DQA0: (PROMSE)
$ UNZIP:==$$12$DQA0:[000000]UNZIP
$ UNZIP DQA0:[000000]PROM58 /QUIET/OVERWRITE
Archive: DQA0:[000000]PROM58.ZIP;1

$ UNZIP :== $$12$DQA0:[000000]UNZIP
$ UNZIP $12$DQA0:[000000]PROM58 /OVERWRITE


$ UNZIP -q -o $12$DQA0:[000000]PROM58
$ unzip
UnZip 5.42 of 14 January 2001, by Info-ZIP. For more details see: unzip -v.

Usage: unzip [-Z] [-opts[modifiers]] file[.zip] [list] [-x xlist] [-d exdir]
Default action is to extract files in list, except those in xlist, to exdir;
file[.zip] may be a wildcard. "-Z" => ZipInfo mode (`unzip "-Z"' for usage).
=> define foreign command symbol in LOGIN.COM: $ unzip :== $dev:[dir]unzip.exe

-p extract files to pipe, no messages -l list files (short format)
-f freshen existing files, create none -t test compressed archive data
-u update files, create if necessary -z display archive comment
-x exclude files that follow (in xlist) -d extract files into exdir

modifiers: -q quiet mode (-qq => quieter)
-n never overwrite existing files -a auto-convert any text files
-o overwrite files WITHOUT prompting -aa treat ALL files as text
-j junk paths (do not make directories) -v be verbose/print version info
"-C" match filenames case-insensitively "-L" make (some) names lowercase
"-X" restore owner/protection info "-V" retain VMS version numbers
"-M" pipe through "more" pager
Examples (see unzip.txt for more info):
unzip data1 -x joe => extract all files except joe from zipfile data1.zip
unzip "-V" foo "Bar" => must quote uppercase options and filenames in VMS
unzip -fo foo vms.c => quietly replace existing vms.c if archive file newer
Joseph Huber_1
Honored Contributor

Re: Unzip in VMS Query

CO:
bumped into this method...it works after put in the -q -o rather than /overwrite/quiet
with or without the $, it seems no much difference.

No, for sure the "$" prefix is needed.

The option syntax is a completely different thing.
Unzip for VMS builds in 2 different flavors:
One is the Unix/shell compatible -o etc., usually built as file UNZIP.
The other one is the VMS/DCL compatible with the /option form of switches, usually built as file UNZIP_CLI.

So if You have and deine
UNZIP:==$$12$DQA0:[000000]UNZIP_CLI, then You can use the above UNZIP/QUIET... syntax.

And as a side note: it is really not good organisation style to put programs (and other user files) in the root directory of a disk. By default, a user cannot even get a DIRectory listing of disk:[000000] !

http://www.mpp.mpg.de/~huber
CO_5
Advisor

Re: Unzip in VMS Query

thks for more inputs.

but, i dont see the UNZIP_CLI in the cd. so this /option will not be the choice, rite ?

Why this is different from VMS alpha, where i used to do UNZIP with /option, rather than -option ? is it to do with Itanium platform/HP OpenVMS Industry Standard 64 Operating System, Version V8.3?