Example 1: Adding a new module to an existing load module

Module IFBMOD01 is a new module that is to be placed in the distribution library SYS1.AOSFB and is to be link-edited with the existing load module IEEFRQ in the target system library SYS1.LINKLIB. Module IFBMOD01 contains two CSECTs, IFBCST01 and IFBCST02. Here is an example of a SYSMOD containing a ++MOD statement to do this:
++USERMOD(USR0001)          /* User modification        */.
++VER(Z038) FMID(JXY1040)   /* to user application.     */.
++MOD(IFBMOD01)             /* Add this module          */
            DISTLIB(AOSFB)  /* to this DLIB at ACCEPT,  */
            LMOD(IEEFRQ)    /* to this LMOD at apply.   */
            CSECT(IFBCST01  /* Module has two CSECTs.   */
                  IFBCST02) /*                          */.
...
... object deck for IFBMOD01
...
The following DD statement is needed at APPLY time to define the operating system load module library:
//LINKLIB  DD  DSN=SYS1.LINKLIB,DISP=OLD
When the SYSMOD is accepted, the following DD statement is needed to define the distribution library for this module:
//AOSFB  DD  DSN=SYS1.AOSFB,DISP=OLD