d $	Verify :=='F$Verify(0)'
 $	!**************************************************************
,$	!
$	!	DLOGIN.COM	Development Login Procedure
$	!			Skeleton Sample Procedure
X$	!
$	!	   Date     Initials   Description
 $	!
$	!	20 Aug 81     BLJ	Initial Implementation
$	!	25 Aug 81     BLJ	Expanded COMMANDS no old LOGIN
L$	!	26 Aug 81     BLJ	Source and Test Directories
$	!				Assigned at Startup by SYSTARTUP.COM
$	!	 4 Sep 81     BLJ	Assign Development Default Proctection
x$	! 				Software Development Process Assignments
$	!	07 Sep 81     LYK,BLJ   Add set protection and change system
@$	!				message to Disk$system[sysmgr]
$	!	23 Feb 82	BLJ	Check SYS$STATE Status Code
$	!	01 Aug 82	BLJ	VMS 3.0 Update
l$	!	10 Nov 82	BLJ	EXIT if Network Job
$	!	24 Jan 83 	BLJ	Set Control_Y
4$	!	16 May 83	BLJ	Set Terminal Width to 132
$	!
$	!	__________  ________   _____________________________
`	$	!
	$	!**************************************************************
(
$	!

$	!	This procedure is specified in the User Authorization

$	!	File specification for every INMOS Development User.
T$	!	The procedure validates system status according to the
$	!	logical assignment of SYS$STATE and if system is not
$	!	available to interactive users displays reason, else
$	!	the procedure displays the Messages of the Day,
$	!	invokes software development logical assignments for 
H$	!	device/directory specifications, invokes common
$	!	login command definitions and invokes the individual
$	!	user's LOGIN.COM.
t$	!
$	!**************************************************************
<$	!
$	!	SYS$STATE Codes :  0 - System Available
$	!			   1 - Month-end Processing in Progress
h$	!		 	   2 - System under hardware maintenance
$	!			   3 - System software testing
0$	!                          4 - Future Use
$	!			   5 - Future Use
$	!
\$	!**************************************************************
$	!
$$	SET PROTECTION=(SYSTEM:RWED,OWNER:RWED,GROUP:RWE,WORLD)/DEFAULT
$	!
$	@Sys$Manager:ASSIGNDEV/Output=NLA0:
P$	!
$	!	Identify Process Mode / Branch if BATCH
$	!
|$	Mode := 'f$mode()'
$	IF Mode .EQS. "BATCH" THEN Goto BMODE
D$	IF Mode .EQS. "NETWORK" THEN Exit
$	Set Control_Y
$	!
p$Chekstat:
$	Set Terminal/Width=132
8$	Clear :==@Disk$System:[SYSMGR]CLEAR "Dummy"
$	!
 $	!	System Available - Procedure Continues
d$	!
$	!
,$	!	Continue Procedure on any error
$	!
$	On Severe_Error Then CONTINUE
X$	!
$	!	Display System Message of the Day
 $	!
$	@Sscom:Msg
$	!
L$	!	Display Software Development Message of the Day
$	!
$	Type SSCOM:SOFTWARE.MSG
x$	!
$	!	Invoke Development Users Logical Assignments
@$	!
$	! @LOGICAL/OUTPUT=NLA0:
 $	!
l $	!	Invoke Software Development Login Commands
 $	!
4!$	@SSCOM:COMMANDS
!$	!
!$	!	Invoke Individual User's LOGIN.COM
`"$	!
"$	@LOGIN
(#$	!
#$	!
#$	!	Check System Availability Status
T$$	!
$$	State := 'F$Logical("SYS$STATE")'
%$	Goto State'State'
%$	!
%$	!	System Unavailability Messages
H&$	!
&$State1:
'$	Clear
t'$	Write Sys$Output " Month-end Processing In Progress     "
'$	Write Sys$Output " Normal Processing Resumes  9:00 a.m. "
<($	Write Sys$Output " Please logoff if not performing month-end processing"
($	Goto Finis
)$State2:
h)$	Clear
)$	Write Sys$Output " System Under Hardware Maintenance    "
0*$	Write Sys$Output " Normal Processing Resumes  6:00 p.m. "
*$	Write Sys$Output " Please Logoff !!"
*$	Goto Finis
\+$State3:
+$	Clear
$,$	Write Sys$Output " System Software Testing In Progress  "
,$	Write Sys$Output " You will be notified when system is available "
,$	Write Sys$Output " Please Logoff !!"
P-$	Goto Finis
-$State4:
.$	Clear
|.$	Write Sys$Output " System Unavailable !                 "
.$	Write Sys$Output " You will be notified when system is available "
D/$	Write Sys$Output " Please Logoff !!"
/$	Goto Finis
0$State5:
p0$	Clear
0$	Write Sys$Output " System Unavailable !                 "
81$	Write Sys$Output " You will be notified when system is available "
1$	Write Sys$Output " Please Logoff !!"
 2$	Goto Finis
d2$	!
2$	!	Batch Mode Branch
,3$	!
3$Bmode:
3$	ON Severe_Error THEN Continue
X4$	@LOGICAL/Output=NLA0:
4$	@SSCOM:COMMANDS/Output=NLA0:
 5$	@LOGIN
5$	Continue
5$State0:
L6$Finis:
6$	!
7$	!----------------------- end of procedure --------------------
