You can use either the ADD or the REP statement to add a CALLLIBS
subentry list to an LMOD entry, depending on whether the CALLLIBS
already exists or not. The order in which the libraries are specified
is important because it indicates the order in which the SYSLIB concatenation
is built. This is shown in the examples that follow.
- Adding a CALLLIBS subentry: This example adds a CALLLIBS
subentry list containing PLIBASE and APPLIB to LMOD entry LMOD04.
SET BDY(ZOSZN) /* set to z/OS zone */.
UCLIN /* start UCLIN processing */.
ADD LMOD(LMOD04) /* identify LMOD entry */
CALLLIBS(PLIBASE,APPLIB) /* add CALLLIBS subentry */.
ENDUCL /* end UCLIN processing */.
- Adding to an existing CALLLIBS subentry: Suppose LMOD entry
LMOD05 has a CALLLIBS subentry list containing PLIBASE and APPLIB,
and CSSLIB is to be added to this list. The entire CALLLIBS subentry
must be replaced as shown in the following example: :
SET BDY(ZOSZN) /* set to z/OS zone */.
UCLIN /* start UCLIN processing */.
REP LMOD(LMOD05) /* identify LMOD entry */
CALLLIBS(PLIBASE,APPLIB, /* */
CSSLIB) /*replace entire CALLLIBS */.
ENDUCL. /* end UCLIN processing */.
Note: If an ADD statement is used to try to update an existing CALLLIBS
subentry list in an LMOD entry, SMP/E issues an error message.