SMP/E for z/OS User's Guide
Previous topic | Next topic | Contents | Index | Contact z/OS | Library | PDF


Example 4: Replacing a macro or source code

SMP/E for z/OS User's Guide
SA23-2277-01

This is an example of a USERMOD that adds a new macro. In this example, the macro is installed in a target and a distribution library. In addition, source code element USRSRC01 is to be assembled when the macro is installed.
++USERMOD(UJES004)          /* SYSMOD ID of USERMOD.    */.
++VER(Z038)                 /* SREL for MVS.            */
     FMID(HJE2102)          /* Applicable to JES.       */
                            /*                          */.
++MAC(USRMAC01)             /* Name of new macro.       */
     DISTLIB(USRMACLB)      /* ddname of DLIB.          */
     SYSLIB (MACLIB)        /* ddname of system MACLIB. */
     ASSEM  (USRSRC01)      /* Reassemble this source.  */
                            /*                          */.
...
... macro replacement
...
Note:
  1. No JCLIN is required to install a new macro; all necessary information can be specified on the ++MAC statement.
  2. You can follow this example to add new source code, with the following exceptions:
    • The ASSEM operand is not required for source code. If SMP/E understands where source code is to be installed, it automatically tries to assemble the new version of the source code after replacing the old version.
    • To define how the source code should be installed, you should include a ++JCLIN statement followed by JCLIN data. The JCLIN data should be similar to that in the example of adding a new module.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014