TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-287
#PMSEARCHLIST Built-In Variable
#PMSEARCHLIST Built-In Variable
Use #PMSEARCHLIST to set or obtain the current contents of the search list used for
finding program and macro files.
Result
#PMSEARCHLIST returns the current contents of the search list used for finding
programs and macro files.
Considerations
#PMSEARCHLIST has a maximum size of 500 characters.
When you first log on, #PMSEARCHLIST is initialized to $SYSTEM.SYSTEM.
TACL uses the #PMSEARCHLIST variable for remote program files as well as
local program files. To specify a separate search list for remote files, #PUSH and
#SET #PMSEARCHLIST prior to starting the remote process. When finished,
#POP #PMSEARCHLIST.
Use #PUSH #PMSEARCHLIST (or PUSH #PMSEARCHLIST) to save a copy of
the current contents of the program and macro search list.
Use #SET #PMSEARCHLIST (or SET VARIABLE #PMSEARCHLIST) to define a
search list to be used by TACL when searching for a program or macro file. A
search list is a space-separated list of subvolumes.
The syntax of #SET #PMSEARCHLIST is:
searchlist
is a space-separated list of subvolumes to be searched when you give TACL
the name of a program or macro file.
When the search list is used, each of its entries is defaulted with the current
default subvolume and the resulting subvolume is searched for the file. When
the file is found, further subvolumes are not used.
You can #SET #PMSEARCHLIST #DEFAULTS (no brackets around
#DEFAULTS), which will later use whatever defaults are in effect at the
time you use the search list; for example:
35> VOLUME $guest.alice
36> #SET #PMSEARCHLIST #DEFAULTS
37> VOLUME $new.jones
38> test
#PMSEARCHLIST
#SET #PMSEARCHLIST searchlist