Operating System - OpenVMS
1821544 Members
2339 Online
109633 Solutions
New Discussion юеВ

Re: 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 !
Lokesh_2
Esteemed Contributor

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

No, there is no reason. You can use /exec .

I guess earlier you were getting into loop with sho logical command because you were have this logical defined (perhaps you used assign command or just did reverse while defining logical)

sys$sysdevice:[admin.] = admin

So, I posted to deassign it.

Thanks & regards,
Lokesh
What would you do with your life if you knew you could not fail?
Tim Nelson
Honored Contributor

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

Got it.. Yes I did accidentally use assign but thought I cleared it up..

I appreciate all the quick responses !!

Have a great weekend.

Wim Van den Wyngaert
Honored Contributor

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

Tim,

/exec is sometimes required by software like job schedulers (e.g. jams).

Wim
Wim
Ian Miller.
Honored Contributor

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

the reason for using /EXEC is that images that are installed will only look at exec mode logicals. Its a secuirity thing.
____________________
Purely Personal Opinion
Uwe Zessin
Honored Contributor

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

If "ADMIN" is a 'rooted logical name' like "SYSSYSDEVICE:[ADMIN.]", then you cannot reach this directory by:
$ SET DEFAULT ADMIN:

Use:
$ SET DEFAULT ADMIN:[000000]

I assume that the definition of ADMIN is correct, of course...
.
Martin P.J. Zinser
Honored Contributor

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

Hi,

logicals you use in sysuaf to hide physical devices in login directories are a case where you need to go /sys/exec , else things like Mail will not work.

Greetings, Martin
John Gillings
Honored Contributor

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

"SYS$SYSDEVICE:[ADMIN.]" is not valid a valid translation for a concealed device logical name. The translation MUST be in terms of physical device names. It may "work" in some contexts but that doesn't make it valid.

That this isn't explicitly documented in current manuals is an oversight. Expect it to be corrected in future documentation.
A crucible of informative mistakes