User`s guide

LIBRARY
The following example creates a macro library called MACLIB.MLB from seven
input files:
.LIBRARY/MACRO/PROMPT MACLIB A,B,C,D
RET
*E,F,G
RET
*//
RET
/REMOVE
Lets you delete a specific global symbol from a library file’s directory.
Note: Because globals are deleted only from the directory (and not from the object
module itself), all the globals that were previously deleted are restored whenever
you update that library, unless you use /REMOVE again to delete them. This
feature lets you recover a library if you have inadvertently deleted the wrong
global.
RT–11 prompts you for the names of the global symbols to remove. The prompt
is:
Global?
Respond with the name of a global symbol to be removed. Follow each global
symbol with
RETURN
. Enter
RETURN
on a line by itself to terminate the list of
global symbols.
The following example deletes the globals GA, GB, GC, and GD from the library
OLDLIB.OBJ:
.LIBRARY/REMOVE OLDLIB
RET
Global? GA
RET
Global? GB
RET
Global? GC
RET
Global? GD
RET
Global?
RET
/REPLACE
Replaces modules in an existing object library with modules of the same name
contained in the files you specify.
The following example replaces a module called SQRT in the library
MATHLB.OBJ with a new module, also called SQRT, from the file called
MFUNCT.OBJ:
.LIBRARY MATHLB MFUNCT/REPLACE
Note:
The /REPLACE option must follow each file specification that contains a
module to be inserted into the library.
You can use /REPLACE only with modules and never with library files.
/UPDATE
Combines the functions of /INSERT and /REPLACE. Specify it after each file
specification to which it applies. If the modules in the input file already exist in
RT–11 Command Descriptions 161