Under TSO

The Object Library Utility has the following syntax:

Read syntax diagramSkip visual syntax diagram
Syntax

>>-C370LIB------------------------------------------------------>

>--+-ADD--LIB--(─libname─(─membername─)─)--+------------------+-+-><
   |                                       '-OBJ--(─objname─)-' |   
   +-DEL--LIB--(─libname─(─membername─)─)-----------------------+   
   +-MAP--LIB--(─libname─)--+---------------+-------------------+   
   |                        '-LIST--(─map─)-'                   |   
   '-DIR--LIB--(─libname─)--------------------------------------'   

ADD
Adds (or replaces) an object module in an object library.

If the ADD function is used to insert an object module in a member of a library that already exists, the previous member is deleted before the insert unless the source data set is the same as the target data set, in which case the member is not deleted and only the Object Library Utility directory is updated as appropriate.

DEL
Deletes an object module from an object library.
MAP
Lists the names (entry points) of object library members.
DIR
Builds the Object Library Utility directory member. The Object Library Utility directory contains the names (entry points) of library members.

The DIR function is only necessary if object modules were previously added or deleted from the library without using C370LIB.

LIB (libname(membername))
Specifies the target data set for the ADD and DEL functions. The data set name must contain a member specification to indicate which member is to be created, replaced, or deleted.
OBJ (objname)
Specifies the source data set containing the object module that is to be added to the library. If you do not specify a data set name, the target data set specified in LIB(libname(membername)) is used as the source.
LIB (libname)
Specifies the object library for which a map is to be produced or for which a Object Library Utility directory is to be built.
LIST (map)
Specifies the data set that is to contain the library map. If an asterisk (*) is specified, the library map is directed to your terminal. If you do not specify a data set name, a name is automatically generated using the library name and the qualifier MAP. If the input library data set is called TEST.OBJ and your user prefix is FRANK, the data set name generated for the map is FRANK.TEST.OBJ.MAP.

Under TSO, you can use either the C370LIB CLIST or the CC CLIST using the parameter C370LIB. The C370LIB parameter of CC CLIST specifies that if the object module from the compile is directed to a member of a PDS, then the Object Library Utility directory is to be updated. This step is the equivalent to a compile and C370LIB ADD step. If the C370LIB parameter is specified and the object module is not directed to a member of a PDS, the C370LIB parameter is ignored.