	.ENABLE GLOBAL
	.ENABLE SUBSTITUTION
	;
	;	Building OPA -- Online Pool Analyzer
	;
	.SETF SRCDEV
	.IFNDF $TKB .SETS $TKB "TKB"
	.IFDF $SRC .GOTO SRCOK
	.SETS $SRC COMMAN
	.PARSE $SRC " " $SRC DUMMY
	.PARSE $SRC "/" $SRC DUMMY
	.PARSE $SRC "." $SRC EXT
	.IF EXT EQ "" .SETS EXT "CMD"
	.TESTFILE '$SRC'.'EXT'
	.PARSE <FILSPC> ":" $SRC TEMP
	.TESTFILE SY:
	.PARSE <FILSPC> ":" SYDEV TEMP
	.IF $SRC EQ SYDEV .SETT SRCDEV
	.SETS $SRC $SRC+":"
.SRCOK:	.SETF Q
	.IFDF $LST .AND .IFDF $MP .GOTO CHKMP
	.ASK Q Generate listings
	.IFT Q .SETS $LST ""
	.IFF Q .SETS $LST "NL:"
	.SETF Q
	.ASK Q Generate maps
	.IFT Q .SETS $MP ""
	.IFF Q .SETS $MP "NL:"
.CHKMP:
	SLP @'$SRC'OPA.COR
	MAC OPA,'$LST'OPA/-SP=LB:[1,1]EXEMC/ML,[11,10]RSXMC,SY:'<UIC>'OPA
	PIP OPA.MAC;*/DE
	.OPEN OPATKB.CMD
	.DATA OPA/PR,'$MP'OPA/-SP=OPA,LB:[1,54]RSX11M.STB/SS,[1,1]EXELIB/LB
	.DATA /
	.DATA STACK=20
	.DATA TASK=...OPA
	.DATA ASG=TI:1
	.DATA UNITS=1
	.DATA PRI=100
	.DATA //
	.CLOSE
	'$TKB' @OPATKB
	PIP OPATKB.CMD;*/DE,OPA.OBJ;*
