Example 1: Adding a new SRC entry

Assume that you have a user application installed and want to support it with SMP/E. To do this, you must record the modules in the target and distribution zones. You should identify the MOD and LMOD entries for your application by running the JCLIN function, using the appropriate link and copy steps as input. The source elements in your application will have to be entered through UCLIN. Assume that the FMID you want to assign the product is ZUSR001 and that no service level is to be recorded. The following UCL statements should be used for each such source:
SET      BDY(TGT1)          /* Set to target zone.        */.
UCLIN                       /*                            */.
ADD      SRC(SRC01)         /* Define new source entry.   */
         DISTLIB(ASRCLIB)   /* Define DLIB,               */
         SYSLIB(SRCLIB)     /* system library
                               (never the SMPSTS or STS). */
         FMID(ZUSR001)      /* Functional owner (in this
                               example a user function).  */
                            /*                            */.
ENDUCL                      /*                            */.
SET      BDY(DLB1)          /* Now do same to DLIB.       */.
UCLIN                       /*                            */.
ADD      SRC(SRC01)         /* Define new source entry.   */
         DISTLIB(ASRCLIB)   /* Define DLIB,               */
         SYSLIB(SRCLIB)     /* system library
                               (never the SMPSTS or STS). */
         FMID(ZUSR001)      /* Functional owner (in this
                               example a user function).  */.