A replacement for the source IFBSRC01 is in a partitioned data set referred to by the ddname REPLACE. The distribution library for the source is SYS1.IFBSRC; SYS1.AOS23 is the distribution library for the module, IFBSRC01, resulting from the assembly of the source, IFBSRC01.
++USERMOD(USR0001) /* User modification */.
++VER(Z038) FMID(FXY1040) /* for user function in MVS.*/.
++SRC(IFBSRC01) /* Replace source */
DISTLIB(IFBSRC) /* in this DLIB. */
DISTMOD(AOS23) /* MOD goes in this DLIB. */
TXLIB(REPLACE) /* Replacement SRC is here. */.
//REPLACE DD DSN=…
//SMPSTS DD DSN=SYS1.SMPSTS,DISP=OLD
++JCLIN. /* JCLIN to get SRC linked. */
//JOB1 JOB 'accounting info',MSGLEVEL=(1,1)
//STEP1 EXEC PGM=IEBCOPY
//AOS23 DD DSN=SYS1.AOS23,DISP=SHR
//LPALIB DD DSN=SYS1.LPALIB,DISP=SHR
//SYSIN DD *
COPY INDD=AOS23,OUTDD=LPALIB
SELECT M=(IFBSRC01)
/*
//LPALIB DD DSN=SYS1.LPALIB,DISP=OLD
//REPLACE DD DSN=…
//IFBSRC DD DSN=SYS1.IFBSRC,DISP=OLD
//AOS23 DD DSN=SYS1.ASO23,DISP=OLD