Operating System - OpenVMS
1753452 Members
5776 Online
108794 Solutions
New Discussion юеВ

VMS error when set def or dir to logical:[dir]

 
SOLVED
Go to solution
Tim Nelson
Honored Contributor

VMS error when set def or dir to logical:[dir]

Running into some problems using a logical for dir command or set def to a directory under the logical.
"ADMIN" = "SYS$SYSDEVICE:[ADMIN]" (LNM$SYSTEM_TABLE)
SET DEF ADMIN:[UTIL]
%DCL-W-DIRECT, invalid directory syntax - check brackets and other delimiters
DIR ADMIN:[UTIL]
%DIRECT-E-OPENIN, error opening ADMIN:[UTIL] as input
-RMS-F-DIR, error in directory name
I origionally encountered this when using a search list logical like sys$sysroot as well. I read that search list logicals are special and the new directory must exist under all the searchable directories or an error will occur..
This should be easy.
Thanks in advance.
16 REPLIES 16
Lokesh_2
Esteemed Contributor

Re: VMS error when set def or dir to logical:[dir]

Hi,

Put a "." at the end (rooted logical)

$defin/system ADMIN SYS$SYSDEVICE:[ADMIN.]

Thanks & regards,
Lokesh

What would you do with your life if you knew you could not fail?
Ian Miller.
Honored Contributor
Solution

Re: VMS error when set def or dir to logical:[dir]

DEFINE/SYSTEM/TRANS=CONC ADMIN SYS$SYSDEVICE:[ADMIN.]

Note trailing .
____________________
Purely Personal Opinion
Wim Van den Wyngaert
Honored Contributor

Re: VMS error when set def or dir to logical:[dir]

Make that
$defin/system ADMIN SYS$SYSDEVICE:[ADMIN.]/tran=conc

Wim
Wim
labadie_1
Honored Contributor

Re: VMS error when set def or dir to logical:[dir]

It seems we go back to a recent thread about rooted directory

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=618645

and see particularly what John Gillings posted

Tim Nelson
Honored Contributor

Re: VMS error when set def or dir to logical:[dir]

$ define /system/exec admin sys$sysdevice:[admin.]
$ show log admin
"ADMIN" = "SYS$SYSDEVICE:[ADMIN.]" (LNM$SYSTEM_TABLE)
1 "SYS$SYSDEVICE:[ADMIN.]" = "ADMIN" (LNM$SYSTEM_TABLE)
2 "ADMIN" = "SYS$SYSDEVICE:[ADMIN.]" (LNM$SYSTEM_TABLE)
3 "SYS$SYSDEVICE:[ADMIN.]" = "ADMIN" (LNM$SYSTEM_TABLE)
4 "ADMIN" = "SYS$SYSDEVICE:[ADMIN.]" (LNM$SYSTEM_TABLE)
5 "SYS$SYSDEVICE:[ADMIN.]" = "ADMIN" (LNM$SYSTEM_TABLE)
6 "ADMIN" = "SYS$SYSDEVICE:[ADMIN.]" (LNM$SYSTEM_TABLE)
7 "SYS$SYSDEVICE:[ADMIN.]" = "ADMIN" (LNM$SYSTEM_TABLE)
8 "ADMIN" = "SYS$SYSDEVICE:[ADMIN.]" (LNM$SYSTEM_TABLE)
9 "SYS$SYSDEVICE:[ADMIN.]" = "ADMIN" (LNM$SYSTEM_TABLE)
$ set def admin
%RMS-F-DIR, error in directory name
$ set def admin:
%RMS-F-DIR, error in directory name
$ set def admin:[util]
%DCL-W-DIRECT, invalid directory syntax - check brackets and other delimiters
Still being weird.. Could you eyeball the syntax above please ?
Tim Nelson
Honored Contributor

Re: VMS error when set def or dir to logical:[dir]

define /system/exec/trans=conc admin sys$sysdevice:[admin.]
does the trick. I have been reading on the rooted logicals and still trying to apply the discussion to reality.
the trans=concealed is the ticket.
Apologize for missing that. It now makes sense.
Thanks to all !!!!
Lokesh_2
Esteemed Contributor

Re: VMS error when set def or dir to logical:[dir]

Give the following command:

deass/system/exec SYS$SYSDEVICE:[ADMIN.]
deass/system/exec admin

Then give the following command:

DEFIN/SYSTEM/TRAN=CON ADMIN SYS$SYSDEVICE:[ADMIN.]

Best regards,
Lokesh Jain
What would you do with your life if you knew you could not fail?
Wim Van den Wyngaert
Honored Contributor

Re: VMS error when set def or dir to logical:[dir]

Tim,

Note also that you can not use concealed devices in the construction of concealed devices. 1 exception : the concealed device pointing to a device.

In other words : only 1 .] may be present in the logical expansion.

Wim
Wim
Tim Nelson
Honored Contributor

Re: VMS error when set def or dir to logical:[dir]

Lokesh,
Is there a reason to not specify /exec ? I am looking to make this a system wide logical. ( yes I promise to read the doc a little better but want your opinion.

Thanks !