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??
Is mcr no longer changing to system directory?
-
- VSI Expert
- Visitor
- Posts: 1
- Joined: Fri Jan 31, 2020 5:29 am
- Reputation: 0
- Status: Offline
Re: Is mcr no longer changing to system directory?
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
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
-
Topic author - Valued Contributor
- Posts: 62
- Joined: Sun Jun 16, 2019 7:55 am
- Reputation: 6
- Location: Zurich
- Status: Offline
- Contact:
Re: Is mcr no longer changing to system directory?
Ta.
Never realised.
Never realised.
Re: Is mcr no longer changing to system directory?
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")'"
-
Topic author - Valued Contributor
- Posts: 62
- Joined: Sun Jun 16, 2019 7:55 am
- Reputation: 6
- Location: Zurich
- Status: Offline
- Contact:
Re: Is mcr no longer changing to system directory?
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.