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: - No JCLIN is required to install a new macro; all necessary information
can be specified on the ++MAC statement.
- 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.