//COMPILE EXEC EDCCLIB,INFILE='WALTER.SOURCE(SUB1)',CPARM='LO',
// LIBRARY='WALTER.SOURCE.LIB',MEMBER='SUB1'
//OBJLIB EXEC EDCLIB,OPARM='MAP',LIBRARY='WALTER.SOURCE.LIB'
For z/OS XL C++, use the EDCLIB cataloged procedure. You can specify commands for the object library utility step on the OPARM parameter. You can specify options for the object library utility step. These options can generate a library directory, add members or delete members of a directory, or generate a map of library members and defined external symbols. This topic shows you how to specify these options under z/OS batch.
//DIRDIR EXEC EDCLIB,
// LIBRARY='LUCKY13.CXX.OBJMATH',
// OPARM='DIR'
//MAPDIR EXEC EDCLIB,
// LIBRARY='LUCKY13.CXX.OBJMATH',
// OPARM='MAP'
To add new members to an object library, use the ADD option to update the directory.
//ADDDIR EXEC EDCLIB,
// LIBRARY='LUCKY13.CXX.OBJMATH',
// OPARM='ADD MA191',
// OBJECT='DSNAME=LUCKY13.CXX.OBJ(OBJ191),DISP=SHR'
To delete a member from an object library, use the DEL option to keep the directory up to date.
//DELDIR EXEC EDCLIB,
// LIBRARY='LUCKY13.CXX.OBJMATH',
// OPARM='DEL OLDMEM'