The resulting file, OSMAC MACLIB Al, contains the members:
GETPUT TTIMER STIMER PUT REGEQU The PUT macro, which appears twice in the input to the command, also
appears twice in the output. TheMACLIB command does not check for
duplicate macro names. If, at a later time, thePUT macro is requested
fromOSMAC MACLIB, the first PUT macro encountered in the directory is
used.When COpy files are added to MACLIBs, the name of the library member is taken from the name of the COpy file, or from the *COPY statement, as
in the fileTIME COPY, above. Note that although the file REGEQU COPY contained two macros, they were both included in the MACLIB with the
nameREGEQU. When the input file is a MACRO file, the member name(s) are
taken from macro prototype statements in theMACRO file. The ADD function appends new members to an existing macro
library. For example, assume thatOSMAC MACLIE A1 exists as created in
the example in the explanation of the GEN function and the fileDCB COpy exists as follows: *COpy DCB DCB macro definition *COPY DCED
DCBDmacro definition
If you issue the command:
maclib addosmac dcb
the resultingOSMAC MACLIB A1 contains the members: GET PUT TTIMER STIMER PUT REGEQU DCB DCBD The REP (replace) function deletes the directory entry for
themacro definition in the files specified. It then appends new macro definitions to the macro library and creates new directory entries. For
example,assume that a macro library MYMAC MACLIE contains the members
A, B, andC, and that the following command is entered:
maclib repmymac a c
The files represented by file identifiersA MACRO and C MICRO each have
onemacro definition. Ifter execution of the command, MYMIC MICLIB contains members with the same names as before, but the contents of I and C are different. The DEL (delete) function removes the specified macro name from the directory and cOmpresses the directory so there
are no unusedentries. The macro definition still occupies space in the
library, but since no directory entry exists it cannot be accessed or
retrieved. If you attempt to delete a macro for which two macro
definitions exist in the macro library, only the first one encountered
is deleted. Forexample: maclib del osmac get put ttimer deb
138 IBMVM/370 eMS User·s Guide
GET
appears twice in the output. The
duplicate macro names. If, at a later time, the
from
used.
in the file
name
taken from macro prototype statements in the
library. For example, assume that
the example in the explanation of the GEN function and the file
DCBD
If you issue the command:
maclib add
the resulting
the
example,
A, B, and
maclib rep
The files represented by file identifiers
one
are no unused
library, but since no directory entry exists it cannot be accessed or
retrieved. If you attempt to delete a macro for which two macro
definitions exist in the macro library, only the first one encountered
is deleted. For
138 IBM