TACL Reference Manual
Built-In Functions and Variables
HP NonStop TACL Reference Manual—429513-018
9-283
#PARAM Built-In Variable
#PARAM Built-In Variable
Use #PARAM to set or obtain the value of a specified parameter or to obtain a list of all
the parameters you have currently in effect. For a discussion about the use of
PARAMs, see the TACL Programming Guide.
param-name
is the name of the parameter whose value is to be determined.
Result
#PARAM returns the value of the specified parameter or, if you omit param-name, it
returns a space-separated list of all your parameters.
Considerations
•
When you first log on, #PARAM is initialized to a null value.
•
TACL reserves 1024 bytes of internal storage for parameters and their values. The
number and length of parameters in effect are limited by this storage area.
•
When a backup TACL process takes over, TACL clears all parameters.
•
Use #PUSH #PARAM (or PUSH #PARAM) to save a copy of all your parameters.
•
Use #POP #PARAM (or POP #PARAM) to replace all your current parameters with
those last pushed.
•
Use #SET #PARAM (or SET VARIABLE #PARAM) to define a parameter name
and, optionally, assign a value to the parameter. These considerations apply:
°
If you supply both a parameter name and value, the specified parameter is set.
°
If you omit both the name and the value, all current parameters are cleared.
°
If you supply only a parameter name, the parameter is deleted.
The syntax of #SET #PARAM is:
param-name
is the name of the parameter to be assigned a value. It can contain from 1 to
31 alphanumeric characters, including circumflex (^) and hyphen (-).
#PARAM [ param-name ]
#SET #PARAM [ param-name [ param-value ] ]