Page 1 of 1

Is mcr no longer changing to system directory?

Posted: Fri Jan 31, 2020 5:01 am
by ajbrehm
I noticed some time ago, I don't know which version of VMS, that starting authorize with mcr no longer changes to the system directory (and instead authorize asks if I want to create a new database file).

Did this change at some point??

Re: Is mcr no longer changing to system directory?

Posted: Fri Jan 31, 2020 5:47 am
by wolfgang.kobarg-sachsse
Hello,

MCR (or MC) is and has ever been the same as "RUN SYS$SYSTEM:" . It never contained an implicit SET DEFAULT SYS$SYSTEM.

Your issue with AUTHORIZE is of a different nature. AUTHORIZE looks for the SYSUAF.DAT file and that location is defined in a logical name SYSUAF.

I suggest you read the online help:

UAF> help files

Best regards
Wolfgang

Re: Is mcr no longer changing to system directory?

Posted: Fri Jan 31, 2020 6:37 am
by ajbrehm
Ta.

Never realised.

Re: Is mcr no longer changing to system directory?

Posted: Fri Jan 31, 2020 5:15 pm
by bhall
IMHO, the best option is to define the logical names for the user authorization files in the system logical name table. However, if you are not the System Manager, you can add the following to your LOGIN.COM and AUTHORIZE will always find the user authorization files without setting your default directory to SYS$SYSTEM.

Code: Select all

$  if f$trnlnm("SYSUAF") .eqs. "" then define/executive SYSUAF "''f$parse("SYSUAF","SYS$SYSTEM:.DAT",,,"SYNTAX_ONLY")'"
$  if f$trnlnm("RIGHTSLIST") .eqs. "" then define/executive RIGHTSLIST "''f$parse("RIGHTSLIST","SYS$SYSTEM:.DAT",,,"SYNTAX_ONLY")'"
$  if f$trnlnm("NETPROXY") .eqs. "" then define/executive NETPROXY "''f$parse("NETPROXY","SYS$SYSTEM:.DAT",,,"SYNTAX_ONLY")'"
$  if f$trnlnm("NET$PROXY") .eqs. "" then define/executive NET$PROXY "''f$parse("NET$PROXY","SYS$SYSTEM:.DAT",,,"SYNTAX_ONLY")'"

Re: Is mcr no longer changing to system directory?

Posted: Sat Feb 01, 2020 7:42 pm
by ajbrehm
I think the confusion was due to the logical not existing. It was commented out in sylogicals.com. I uncommented it. Now it's set and everything is working.