![]() |
![]() HP OpenVMS Systems Documentation |
![]() |
OpenVMS Command Definition, Librarian, and Message Utilities Manual
/CROSS_REFERENCE
Requests a cross-reference listing of an object library. Format/CROSS_REFERENCE [=(option[,...])]
DescriptionIf you omit this qualifier, cross-reference listings are not provided. If you specify /CROSS_REFERENCE without specifying an option, you get cross-reference listings that contain symbols by name and symbols by value. By default, the listing file is created in your current default directory and has the same file name as the library and a file type of .LIS. You can use the /OUTPUT qualifier to specify an alternate file specification for the listing file. Example
/DATA
Stores a library in data-reduced format or expands a library previously stored in data-reduced format. Format/DATA= option
DescriptionWhen you specify /DATA, the DCL command LIBRARY creates a new library. By default, the new library is created in your current default directory with the same file name as the existing library and a file type that is the default for the type of library created. You can use the /OUTPUT qualifier to specify an alternate file specification for the library. Example
/DELETE
Requests the LIBRARY command to delete (physically remove) one or more modules from a library. Format/DELETE= (module[,...])
DescriptionYou must specify the names of the modules to be deleted. If you specify more than one module, separate the module names with commas and enclose the list in parentheses. Example
/EXTRACT
Copies one or more modules from a library into a file. Format/EXTRACT= (module[,...])
DescriptionIf you specify more than one module, separate the module names with commas and enclose the list in parentheses. Example
/FULL
Requests a full description of each module in the module name table. Format/FULL DescriptionUse the /FULL qualifier with the /LIST qualifier to request a list of each library module in the following format, where Ident nn is the identification number of the module: Example
/GLOBALS
Controls, for object module libraries, whether the names of global symbols in modules being inserted in the library are included in the global symbol table. Format/GLOBALS DescriptionBy default, the LIBRARY command places all global symbol names in the global symbol table. Use /NOGLOBALS if you do not want the global symbol names included in the global symbol table. Example
/HELP
Indicates that the library specified is a help library. Format/HELP DescriptionWhen you use the /HELP qualifier, the library file type defaults to .HLB and the input file type defaults to .HLP. Example
/HISTORY
Requests that update history record headers be listed (for libraries that contain a history). Formatusername operation n modules on dd-mmm-yyy hh:mm:ss DescriptionThe /HISTORY qualifier is used with the /LIST qualifier. Use the /HISTORY qualifier with /LIST/FULL to request that the names of updated modules be listed in addition to the update history headers. Example
/INSERT
Requests the LIBRARY command to add the contents of one or more files to an existing library. Format/INSERT DescriptionIf an object module input file consists of concatenated object modules, the LIBRARY command creates a separate entry for each object module in the file; each module name table entry reflects an individual module name. If a macro or help file specified as input contains more than one definition, the LIBRARY command creates a separate entry for each one, naming the module name table entries according to the names specified in the .MACRO directives or in the key-1 name in the help format (see Section 2.5.1). Example
/LIST
Controls whether the LIBRARY command creates a listing that provides information about the contents of the library. Format/LIST [=file-spec]
DescriptionBy default, LIBRARY does not produce a listing. If you specify /LIST without a file specification, LIBRARY writes the output file to the current SYS$OUTPUT device. If you include a file specification that does not have a file type, LIBRARY uses the default file type .LIS.
|
#1 |
---|
$ LIBRARY/LIST=MYMAC.LIS/FULL MYMAC.MLB |
This LIBRARY command requests a full listing of the macro library MYMAC; the output is written to a file named MYMAC.LIS.
#2 |
---|
$ LIBRARY/LIST/NAMES/ONLY=$ONE/WIDTH=80 SYMBOLIB |
This LIBRARY command requests a full listing of the module $ONE, contained in the object library SYMBOLIB.OLB. The /WIDTH qualifier requests that the global symbol display be limited to 80 characters per line.
#3 |
---|
$ LIBRARY/INSERT/LIST ALLOBJECTS * |
This LIBRARY command inserts into ALLOBJECTS.OLB all object modules from all object files in the current directory. If any of the modules to be inserted have the same name as an existing module in the library, the existing module is replaced. The LIBRARY command then lists the resulting library on SYS$OUTPUT.
Controls whether the LIBRARY command verifies each library operation.
/LOG/NOLOG
If you specify /LOG, the LIBRARY command displays the module name, followed by the library operation performed, followed by the library file specification.Other applications of the /LOG qualifier appear in the descriptions of /DELETE and /REPLACE.
$ LIBRARY/REMOVE=(LIB_EXTRCT_MODS,LIB_INPUT_MAC)/LOG LIBRAR |
This LIBRARY command requests the removal of the global symbols LIB_EXTRCT_MODS and LIB_INPUT_MAC from the object library LIBRAR.OLB. The /LOG qualifier requests that the removal of the symbols be confirmed by messages.
Indicates that the library specified is a macro library.
/MACRO
When you specify the /MACRO qualifier, the library file type defaults to .MLB and the input file type defaults to .MAR.
$ LIBRARY/MACRO/INSERT MONTHS APRIL |
This LIBRARY command inserts modules from APRIL.MAR into the macro library MONTHS.MLB.
Names a text module that you want to replace or insert into a text library. It also modifies the input file specification parameter.
/MODULE= module-name
module-name
The name of the module to be inserted in the library.
When you insert text modules into a library, the input file you specify is assumed to be a single module. Therefore, the file name of the input file specification becomes the module name. If you want the file you are inserting to have a module name different from its input file name, use the /MODULE qualifier to name the added module.You can also use the /MODULE qualifier to enter a text module interactively. If you specify the logical name SYS$INPUT as the input file and use the /MODULE qualifier, the LIBRARY command inserts the text you enter from the terminal into the specified library module. To terminate the terminal input, press Ctrl/Z.
Remember that the /MODULE qualifier is an input file qualifier; it assumes that you are either replacing or inserting a new text module. Therefore, the qualifiers that remove modules---/EXTRACT, /DELETE, /REMOVE---are incompatible with /MODULE.
Note that you must place the /MODULE qualifier after the input file you specify.
$ LIBRARY/INSERT/TEXT TSTRING SYS$INPUT/MODULE=TEXT1 |
This LIBRARY command inserts a module named TEXT1 into the text library TSTRING.TLB. The input is taken from SYS$INPUT.
When /LIST is specified for an object module library, controls whether the LIBRARY command lists the names of all global symbols in the global symbol table as well as the module names in the module name table.
/NAMES/NONAMES
The default is /NONAMES, which does not list the global symbol names. If you specify /NAMES, each module entry name is displayed in the following format:
module "module-name" global-symbol global-symbol global-symbol global-symbol . . . . . . . . . . . .If you specify /NAMES and the library is a macro, help, or text library, no symbol names are displayed.
$ LIBRARY/LIST/NAMES/ONLY=$ONE/WIDTH=80 SYMBOLIB |
This LIBRARY command requests a full listing of the module $ONE, contained in the object library SYMBOLIB.OLB. The /WIDTH qualifier requests that the global symbol display be limited to 80 characters per line.
Indicates that the library specified is an object module library.
/OBJECT
Libraries are assumed to be object module libraries unless you specify the /SHARE, /MACRO, /TEXT, or /HELP qualifier. The library file type for object module libraries defaults to .OLB and the input file type defaults to .OBJ.On OpenVMS VAX systems, the /OBJECT qualifier creates a VAX library by default. Note that you cannot have VAX modules and Alpha modules in the same library file. For more information, see the description of the /VAX qualifier.
On OpenVMS Alpha systems, the /OBJECT qualifier creates an Alpha library by default. Note that you cannot have Alpha modules and VAX modules in the same library file. For more information, see the description of the /ALPHA qualifier.
$ LIBRARY/OBJECT/INSERT MONTHS APRIL |
This LIBRARY command inserts modules from APRIL.OBJ into the object library MONTHS.OLB. The /OBJECT qualifier is optional.
Previous | Next | Contents | Index |