	.ENABLE GLOBAL
	.ENABLE QUIET
	.ENABLE SUBSTITUTION
	.SETS UIC <UIC>
	.IFNDF $OTUIC .SETS $OTUIC <UIC>
	.IFNDF $INUIC .SETS $INUIC <UIC>
	.IFNDF $OTDEV .SETS $OTDEV "SY:"
	.SETS LI ""
	.SETS MP ""
	.IFNDF $DIRPR .ASK $DIRPR DO YOU HAVE DIRECTIVE COMMON SUPPORT
	.IFNDF $MCLI .ASK $MCLI DOES YOUR SYSTEM HAVE MULTIPLE CLI SUPPORT
	.IFF $MCLI .SETS TST ".IFDF"
	.IFF $MCLI .SETS JOIN "!"
	.IFT $MCLI .SETS TST ".IFNDF"
	.IFT $MCLI .SETS JOIN "&"
	.IFF $DIRPR .SETS TST2 ".IFDF"
	.IFT $DIRPR .SETS TST2 ".IFNDF"
	.IFT $MCLI .SETS ANS "NOT"
	.IFF $MCLI .SETS ANS ""
	.IFT $DIRPR .SETS ANS2 "NOT"
	.IFF $DIRPR .SETS ANS2 ""
.DISABLE QUIET
.IFNDF $SYSAC .ASK $SYSAC HAVE YOU INCORPORATED THE SYSTEM ACCOUNTING DATA
.IFF $SYSAC ; BASES, TASKLOG WILL NOT WORK UNLESS THE SLP CHANGES TO SYSCM,
.IFF $SYSAC ; TDSCH,SYSXT, AND DATA BASES FOR TT:, VT: AND CO: HAVE BEEN MADE.
.IFF $SYSAC ; PLEASE MAKE THESE CHANGES(SLP FILES PROVEDED), GEN A SYSTEM
.IFF $SYSAC ; AND TRY AGAIN.
.IFF $SYSAC /
.ENABLE QUIET
	.IFNDF $TICS .ASK CLK DO YOU HAVE A PROGRAMABLE CLOCK
	.IFDF $TICS .GOTO 5
	.IFT CLK .SETN $TICS 144
	.IFF CLK .SETN $TICS 74
.5:	.SETN TICS $TICS+0.
	.DISABLE QUIET
	.IFDF CLK ; YOUR CLOCK IS ASSUMED TO "TIC" 'TICS' TIMES/SEC
	.ENABLE QUIET
.IFNDF $RESLB .ASK $RESLB DO YOU WISH TO BUILD TASKLOG WITH AN FCS RESIDENT LIBRARY
.10:	.IFDF $ASM .GOTO START
	.SETF $MAP
	.SETF $LIST
	.IFNDF $TKB .SETF $TKB
	.IFNDF $ASM .SETF $ASM
	.SETF $TKB
	.ASK $ASM ASSEMBLE
	.IFT $ASM .ASK $LIST LIST
	.IFT $LIST .SETS LI ",TI:"
.START:	.IFT $ASM PIP '<UIC>'TSKLOG.OBJ;*/DE/NM
.OPEN CLITST.MAC;1
.ENABLE DATA
	'TST'	M$$CLI'JOIN'A$$CLI
	.ERROR  ; YOUR RSXMC.MAC DOES 'ANS' SUPPORT MULTIPLE CLI"S
	.ENDC
	'TST2'	D$$PAR
	.ERROR ; YOUR RSXMC.MAC DOES 'ANS2' SUPPORT DIRRECTIVE COMMON
	.ENDC
	.END
.DISABLE DATA
	.CLOSE
	.SETF BADBAD
	MAC NL:=LB:[200,200]RSXMC/PA:1,SY:'<UIC>'CLITST
	.IF <EXSTAT> NE 1 .SETT BADBAD
	PIP '<UIC>'CLITST.MAC;*/DE/NM
.DISABLE QUIET
.IFT BADBAD ; SORRY, you can not build TASKLOG untill you decide on multiple
.IFT BADBAD ; CLI and/or directive common support.  We will now exit.
	.IFT BADBAD .EXIT
	.ENABLE QUIET
	.IFT $ASM .OPEN TSKLOGASM.CMD;1
	.IFT $ASM .DATA TSKLOG'LI'=LB0:[1,1]EXEMC/ML,[200,200]RSXMC/PA:1,-
	.IFT $ASM .DATA SY:'$INUIC'TASKLOG
	.IFT $ASM .CLOSE
	.IFT $ASM MAC @TSKLOGASM
	.IF <EXSTAT> NE 1 /
	.IFT $ASM PIP '<UIC>'TSKLOGASM.CMD;*/DE
	.IFT $TKB .GOTO START2
	.ASK $TKB TASKBUILD
	.IFF $TKB .GOTO .EEND
	.IFT $TKB .ASK $MAP MAP
	.IFT $MAP .SETS MP ",TI:"
.START2:.IFT $TKB PIP '$OTUIC'TSKLOG.TSK;*/DE/NM
;	.IFT $RESLB .SETS LIB "FCS"
;	.IFF $RESLB .SETS LIB "BLD"
	.OPEN TSKLOGBLD.CMD;1
.DATA '$OTDEV''$OTUIC'TSKLOG.TSK;1/PR:4/CP'MP'='<UIC>'TSKLOG,[1,24]MCR/LB
	.DATA LB:[1,1]EXELIB/LB
	.DATA LB:[1,54]RSX11M.STB/SS
	.IFT $DIRPR .DATA LB:[1,54]EXCOM1.STB/SS
	.DATA LB:[1,1]SYSLIB/LB/MA
	.DATA /
	.DATA ASG=SY0:1
	.DATA ASG=TI0:2
	.IFT $RESLB .DATA RESLIB=LB:[1,24]FCSRES/RO:6
	.IFT $DIRPR .DATA RESCOM=LB:[1,54]EXCOM1/RW
	.DATA STACK=64
	.DATA GBLDEF=$$TKPS:'$TICS'
	.DATA PRI=65
	.DATA PAR=GEN
	.DATA TASK=TSKLOG
	.DATA //
	.CLOSE
	TKB @TSKLOGBLD
.EEND:	;EOF TASKLOG
	
