TACL Reference Manual
Variables
HP NonStop TACL Reference Manual—429513-018
4-17
Declaring a Simple Data Item
USERNAME
is an 8-word internal-format user name in the same form as that produced by
the USERIDTOUSERNAME procedure. identifier is a name, 1 to 32 characters
in length, which can include alphanumeric, underscore, and circumflex
characters; the first character cannot be numeric.
identifier
is a name, 1 to 32 characters in length, which can include alphanumeric,
underscore, and circumflex characters; the first character cannot be numeric.
VALUE initial-value
specifies the initial value for the field and the value to be given to the field anytime
that the STRUCT is cleared. A STRUCT, like any variable, is cleared by setting it
to nothing:
#SET struct
If you omit VALUE, the default initial value depends on the type of the item:
Numeric items are set to binary zero; other items are set to ASCII spaces.
For CHAR items, initial-value is a character sequence that can appear in
either of two formats:
•
If it is not preceded by a quotation mark, the character sequence can contain
any character except space, semicolon, end-of-line, or any TACL
metacharacter.
•
If it is preceded by a quote, the character sequence must also be followed by a
quote; internal quotes must be doubled (for example, *Press **return**
key*). The character sequence can contain any character other than a TACL
metacharacter.
If you include VALUE for a CHAR item, but supply an incorrect number of initial
values, TACL returns a syntax error.
For all other items, initial-value is a space-separated list of values
appropriate to the type of the item. End-of-line may also be used as a separator.
The list ends when the semicolon is reached. If initial-value does not supply
enough data for all occurrences of the item, TACL supplies appropriate default
initial values for the remaining occurrences.
To be included in a CHAR value, regardless of whether it is enclosed in quotation
marks, a TACL metacharacter must be input under PLAIN or QUOTED format, or
must be preceded by a tilde: ~[, ~|, ~], ~{, ~}, ~==, or ~~. The tilde is not stored in
the structure.
Considerations
These considerations apply to the use of a STRUCT variable to store process
information: