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

System permanent logical names

 
Swain
Regular Advisor

System permanent logical names

I have server running Open VMS 8.2
I want to define logical names which would work for all users and will remain over reboots. Pls let me know how to achieve the same.I tried the following command:
DEFINE/TABLE=LNM$SYSTEM_TABLE/EXECUTIVE_MODE /system DISK$APP AP$DKB100:
It worked for my next login,but didn't work for other users.They get an err showing:
%DCL-E-OPENIN, error opening DISK$APP:[RS1R4]RS1LOG.COM; as input
-RMS-F-DEV, error in device name or inappropriate device type for operation.
20 REPLIES 20
Wim Van den Wyngaert
Honored Contributor

Re: System permanent logical names

Read help def/sys.
The /tab= is not needed.

You have to add the command to SYLOGICALS.COM if you want it to survive boot.

Do other users see the disk ap$dkb100 (with show dev) ?

Wim
Wim
Hakan Zanderau ( Anders
Trusted Contributor

Re: System permanent logical names

Hi,

A logical name is in use the moment you define it ( no need for a logout/login ).

You have defined the name in LNM$SYSTEM_TABLE, but if the logical is already defined in a table closer to your process ( LNM$PROCESS, LNM$JOB, LNM$GROUP ), then it will overridden by the definition in theese tables.

Do a SHOW LOGICAL/FULL DISK$APP and check for a definition in a "lower" table.

Don't forget to add the logical to your startup-scripts ( SYS$STARTUP:SYLOGICALS.COM )

regards,

Hakan Zanderau
Don't make it worse by guessing.........
Joseph Huber_1
Honored Contributor

Re: System permanent logical names

Please note:
logicals like DISK$label are created by the MOUNT command from the volume-label of the disk .
They will replace Your own DISK$APP logical if a disk with the label APP is mounted.

In general, don't use logicals starting with DISK$ for something else.

And in Your case, if the label of the disk in question is APP, then there is no need for an extra logical, and there would be only a single point in startup where the logical is defined:
if the disk moves to another unit or server, only the mount command needs to be changed.
http://www.mpp.mpg.de/~huber
Swain
Regular Advisor

Re: System permanent logical names

yes, the other users are able to see the device using $ sh dev
Wim Van den Wyngaert
Honored Contributor

Re: System permanent logical names

Then check the other tables when logged in as the user having problems.

show log disk$app* /fu

and post it.

Wim
Wim
Jan van den Ende
Honored Contributor

Re: System permanent logical names

Amaresh,

In the construct
>>>
DISK$APP AP$DKB100:
<<<
the DISK$APP part is treated as a device name. To be able to use it as such, you need to add /TRANSLATION=CONCEALED to the DEFINE statement.

And DO look at the answers by Wim, Hakan, and Joseph: they are all part of the full answer.

hth

Proost.

Have one on me.

jpe
Don't rust yours pelled jacker to fine doll missed aches.
Highlighted
Swain
Regular Advisor

Re: System permanent logical names

I tried to add the logical to sylogical.com
but it's showing error
%EDT-F-OPENOUT, error opening DISK$USER:[PRT]SYLOGICALS.JOU; as output
-RMS-F-DEV, error in device name or inappropriate device type for operation
can you help,please?
Swain
Regular Advisor

Re: System permanent logical names

Wim,
I tried $ sh log disk$* /fu and didn't get the logical for disk$app

I have the above mentioned problem in adding the logical to sylogical.com
Hakan Zanderau ( Anders
Trusted Contributor

Re: System permanent logical names

Hm.......

Have you tried both ASSIGN and DEFINE when you defined the logical ???
( the format is not the same for each command )
Do a

$ SHOW LOGICALS DISK$APP* /FULL

and

$ SHOW LOGICAL AP$DKB100* /FULL

And please post the results

/Hakan
Don't make it worse by guessing.........