.; Commands to assemble file and replace module in library		810724
.;
.; Syntax:	@REPLACE <module> [C]
.;
.;	where	<module> = file name  (WITHOUT ".<type>;<version>")
.;
.;		C	 = signal to compress library after
.;			   replacement

	.ENABLE SUBSTITUTION

!	Module 'P1'

	.ENABLE	QUIET

.; Assemble module

	MAC 'P1'=RNPRE/PA:1,'P1'
	.IF	<EXSTAT> NE 1	.GOTO 10

.; Replace in library

	LBR RNO.OLB/RP='P1'.OBJ
	PIP 'P1'.OBJ;*/DE/NM

	.SETS TMP P2[1:1]
	.IF TMP <> "C"	.GOTO 10

.; Compress library

	LBR RNO/CO:80.=RNO.OLB
	PIP RNO.OLB/PU
	PIP *.*;1=RNO.OLB;2/RE

.10:	.EXIT	<EXSTAT>
