.ENABLE SUBSTITUTION
.SETS LI ""
.SETS MP ""
.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 ",LP:"
.START:.IFT $ASM PIP SY1:[12,2]GREP.OBJ;*/DE
.IFT $ASM MAC SY1:[12,2]GREP'LI'=SY1:[12,3]GREP
.IFT $TKB .GOTO START2
.ASK $TKB TASKBUILD
.IFT $TKB .ASK $MAP MAP
.IFT $MAP .SETS MP ",TI:"
.START2:.IFT $TKB PIP SY1:[12,1]GREP.TSK;*/DE
.IFT $TKB .OPEN GREPBLD.CMD;1
.IFT $TKB .DATA SY1:[12,1]GREP/CP/MU/-FP=SY1:[12,2]GREP,PRFCS,DIRDL
.IFT $TKB .DATA /
.IFT $TKB .DATA ASG=TI:2:3
.IFT $TKB .DATA ASG=SY:1
.IFT $TKB .DATA UNITS=3
.IFT $TKB .DATA STACK=64
.IFT $TKB .DATA TASK=...GRE
.IFT $TKB .DATA UIC=[200,200]
.IFT $TKB .DATA PRI=55
.IFT $TKB .DATA LIBR=SYSRES:RO
.IFT $TKB .DATA /
.IFT $TKB .CLOSE
.IFT $TKB TKB @GREPBLD
.IFT $TKB PIP GREPBLD.CMD;1/DE
.END:;EOF GREP
