TACL Reference Manual
UTILS:TACL Commands and Functions
HP NonStop TACL Reference Manual—429513-018
8-234
USE Command
USE Command
The USE command defines the list of directories (in the built-in variable #USELIST)
that your TACL searches to find existing variables if they are not in your home
directory.
directory-name
is the name of an existing variable level of type DIRECTORY. If omitted, the use
list is set to:
:, :UTILS, :UTILS:TACL
Considerations
•
When you invoke a name, TACL first searches the home directory for a variable of
that name, and then in #USELIST. If these searches are unsuccessful, TACL
searches #PMSEARCHLIST for a macro or program file of that name.
•
The USE command ensures that your use list always includes the directories : (the
root), :UTILS, and :UTILS:TACL. If you omit any of these directories in your
arguments to USE, TACL automatically appends them to the use list in the order
shown. Access to, and operation of, TACL commands depends on their presence.
•
Directories are put into #USELIST in the order in which they are specified.
•
The list set by this command can be displayed with the ENV command.
•
You can save and restore the use list by pushing and popping #USELIST.
•
If you detach a segment contained in the current use list or a pushed use list, the
directory is removed from the use list.
•
The use list can contain up to 100 directories.
Example
13> USE MYDIR
14> ENV
Home :MYDIR.1
Pmsearch $MYVOL.MINE, $SYSTEM.SYSTEM
System \MYSYS
Use :MYDIR.1, :, :UTILS.1, :UTILS.1:TACL.1
Volume \MYSYS.$WORK.PROJECT, "NUNU"
USE [ directory-name [ [,] directory-name ] ... ]