SET-W-NOTSET errors in batch logs
Why do these errors occur in batch and what should I do about them?
%SET-W-NOTSET, error modifying DKA0:
-SET-E-INVDEV, device is invalid for requested operation
OpenVMS Management Server appears to be running
%SET-W-NOTSET, error modifying DKA0:
-SET-E-INVDEV, device is invalid for requested operation
SYS$MANAGER:SYLOGIN.COM is executed by every job which logs into the Alpha, both batch and interactive. The SET TERM command is not appropriate for batches as the have no terminal associated with the job and therefore cause a warning message, hence the “-W-“ in the message.
The exact command in SYLOGIN.COM is:
$ SET TERM/FORM
To cure this particular problem, the SET TERM/FORM command should be moved above the $INTEND: label so that it is only executed on interactive/non-batch processes. It should therefore look something like
$ !
$ ! Set interactive LAT Terminal characteristics
$ !
$ SET TERMINAL/INQUIRE ! Find term type
$ SET TERM/FORM
$ @SYS$MANAGER:CSLG_CHECK.COM
$ MCR DMS:SETGUI
$ !
$10:
$ !
$ ! Set the process name to include the Terminal and Username
$ !
$ PNAM$ = UNAM$ ! Init at username
$ Z0$ = ":" ! Flag dialup or not
$ IF DIALUP THEN Z0$ = "*"
$ PNAM$ = F$EXTRACT(0,15,TTY$+Z0$+PNAM$)
$ SET PROCESS/NAME="''PNAM$'" ! Change our name
$ !
$INTEND:
You will get the same error on a SET TERM/INQUIRE which many sites do in their LOGIN.COMs.