Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Install zip and unzip on VMS IA_64

 
YE LIU_1
Frequent Advisor

Install zip and unzip on VMS IA_64

Dear VMS Users,

This is a newpie question: I ftp zip.exe and unzip.exe to my directory:

$! output of show default
dev_src:[myuserid.tools]

I want to create a local symbol so that I can use them.

I tried the follwoing:
$! $1$DGA335 is my disk name
zip := 1$DGA2523:[YLIU.TOOLS]ZIP.EXE

and I got error:
$ zip -?
DCL-W-ACTIMAGE, error activating image 1$DGA2523:[YLIU.TOOLS]ZIP.EXE
-CLI-E-IMGNAME, image file 1$DGA2523:[YLIU.TOOLS]ZIP.EXE;
-RMS-F-DEV, error in device name or inappropriate device type for operation

Can you tell what I have done wrongly and how to do it correctly?

YE LIU
4 REPLIES
Karl Rohwedder
Honored Contributor

Re: Install zip and unzip on VMS IA_64

Try:

$ ZIP:==$$1$DGA2523:[YLIU.TOOLS]ZIP.EXE

Please note the leading $ before the disk $1$DGA..., this indicates the 'foreign' command.

regards Kalle
Steven Schweda
Honored Contributor

Re: Install zip and unzip on VMS IA_64

In Zip 3.0, the help message will have a
space in there to make it clearer that a
separate "$" is needed. And you can get the
help by simply running the program:

alp $ RUN UTILITY:ZIP3GL.EXE
Copyright (c) 1990-2008 Info-ZIP - Type 'zip "-L"' for software license.
Zip 3.0g BETA (February 3rd 2008). Usage: zip == "$ disk:[dir]zip.exe"
[...]

The actual installation instructions for 3.0
are similar.

The current released version says:
[...]
Zip 2.32 (June 19th 2006). Usage: zip=="$disk:[dir]zip.exe"
[...]

Which tends to confuse people, especially
users new to VMS, and those whose disk device
names begin with "$".
YE LIU_1
Frequent Advisor

Re: Install zip and unzip on VMS IA_64

Thanks, Karl and Steven.

I resolved the problem by using the logical name of my disk.

YE LIU
Jess Goodman
Esteemed Contributor

Re: Install zip and unzip on VMS IA_64

As an aside, although defining the symbol as "$$1$DGA2523:[YLIU.TOOLS]ZIP.EXE" will work, it is poor practice. You should not use physical device name strings anyplace except in system management tools that are looking at the entire device (and even then you can use the logical DISK$volume_name in most cases).

Use logical names instead, they are one of the best features of OpenVMS. So in your case:
$ ZIP :== $DEV_SRC:[YLIU.TOOLS]ZIP.EXE
I have one, but it's personal.