	.IFNACT QMG... .GOTO REMFIL
	QUE /STOP:QMG
	.WAIT QMG...
.REMFIL:.; REMOVE ANY OLD TASKS LYING AROUND
	.IFINS TT1SP  REM TT1SP
	.IFINS QMG... REM QMG...
	.IFINS ...PRI REM ...PRI
	.IFINS ...QUE REM ...QUE
	.IFINS PRT... REM PRT...
	.IFINS MC0    REM MC0
	.IFINS MC1    REM MC1
	.; INSTALL SPOOLER TASKS
	INS LB:$QMG/SLV=YES/CKP=YES
	INS LB:$QMGCLI/TASK=...PRI/PRI=55.
	INS LB:$QMGCLI/PRI=55.
	INS LB:$LPP/TASK=TT1SP/PRI=60.
	INS LB:$QMGPRT/PRI=61.
	INS LB:$PDQ/TASK=MC0
	INS LB:$PDQ/TASK=MC1
	QUE /START:QMG
	QUE TT1SP:/CR
	QUE TT1SP:/SPOOL/SHR
	QUE TT1SP:/AS:PRINT
	QUE MCRQUE:/CR
	QUE MC0:/SPOOL/EXTERNAL
	QUE MC1:/SPOOL/EXTERNAL
	QUE MC0:/AS:MCRQUE
	QUE MC1:/AS:MCRQUE
	; The QUEUE Manager is now ready.
