- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Unzip in VMS Query
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 01:38 PM
тАО09-25-2007 01:38 PM
Unzip in VMS Query
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 01:56 PM
тАО09-25-2007 01:56 PM
Re: Unzip in VMS Query
UNZIP:==$$12$DQA0:[000000]UNZIP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 02:59 PM
тАО09-25-2007 02:59 PM
Re: Unzip in VMS Query
I concur with Thomas. The symbol assignment for UNZIP needs a preceding "$".
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 03:33 PM
тАО09-25-2007 03:33 PM
Re: Unzip in VMS Query
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).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 05:39 PM
тАО09-25-2007 05:39 PM
Re: Unzip in VMS Query
$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
OpenVMS Developer & System Manager
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 06:18 PM
тАО09-25-2007 06:18 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 06:21 PM
тАО09-25-2007 06:21 PM
Re: Unzip in VMS Query
$ UNZIP :== $DISK$PROM58:[000000]UNZIP
Jon
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 06:21 PM
тАО09-25-2007 06:21 PM
Re: Unzip in VMS Query
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 08:13 PM
тАО09-25-2007 08:13 PM
Re: Unzip in VMS Query
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] !
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-25-2007 10:23 PM
тАО09-25-2007 10:23 PM
Re: Unzip in VMS Query
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?