The Question is:
Why is the SYS$SCRATCH logical not being created
when a process is started with "$ RUN /DETACHED
Sys$System:LOGINOUT.EXE /INPUT=JOB.COM" ?
The Answer is :
LOGINOUT only creates the SYS$LOGIN, SYS$LOGIN_DEVICE, and SYS$SCRATCH
logical names if it is processing a login based on the contents of a
SYSUAF record -- without access to the SYSUAF record, this information
is unavailable to LOGINOUT.EXE.
If you want to see these particular logical names created, please specify
the /AUTHORIZE qualifier on the RUN/DETACHED command.