TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-94
LOAD Command
LOAD Command
Use the LOAD command to load one or more TACL library files into the TACL memory.
KEEP num
causes TACL, after executing the LOAD command, to perform an implicit KEEP
command on all the variables modified by the LOAD command.
file-name
is the name of one or more TACL libraries.
Considerations
•
Each library consists of one or more ?SECTION directives that specify a variable
and a type associated with that variable, followed by the information (body) to be
put into it when it is created.
•
To process a file, TACL does this for each ?SECTION directive: it pushes the
variable, sets its contents to type, and makes body the new top-level definition of
the variable.
•
As a library is loaded, comments are removed to conserve variable space. Any line
that is blank, or becomes blank because of comment removal, is discarded.
•
If you need to include a blank line (often useful in DELTA type variables), use the
?BLANK directive. ?BLANK causes the loader to insert a blank line in the variable
level.
•
To include lines beginning with question marks (for example, you might be loading
DDL commands into a variable level for later use as the IN variable for a DDL run),
double the question mark (??). The first question mark and any spaces adjacent to
it are discarded and the remainder of the line is treated as text.
•
The LOAD command reads data from a library file in TACL format unless the file
contains a ?FORMAT PLAIN or ?FORMAT QUOTED directive to specify
otherwise. If changed, the format reverts to TACL at the next ?SECTION directive.
Example
This example illustrates how to load two libraries, retaining only one level of each
variable:
17> LOAD / KEEP 1 / mykeys mymacs
LOAD [ / KEEP num / ] file-name [ file-name ] ...