The Object Library Utility has the following syntax:
Syntax >>-C370LIB------------------------------------------------------> >--+-ADD--LIB--(─libname─(─membername─)─)--+------------------+-+->< | '-OBJ--(─objname─)-' | +-DEL--LIB--(─libname─(─membername─)─)-----------------------+ +-MAP--LIB--(─libname─)--+---------------+-------------------+ | '-LIST--(─map─)-' | '-DIR--LIB--(─libname─)--------------------------------------'
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.
The DIR function is only necessary if object modules were previously added or deleted from the library without using C370LIB.
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.