TACL Reference Manual
Variables
HP NonStop TACL Reference Manual—429513-018
4-13
Declaring a Structure Body
•
Assigning values to the STRUCT using #SET (programmatic), SET VARIABLE
(interactive), #SETBYTES, or #SETV
•
Comparing the STRUCT to another structure or structure item using #COMPAREV
(programmatic) or _COMPAREV (interactive)
•
Specifying a STRUCT as the source variable for #OUTPUTV (programmatic),
OUTVAR (interactive), #APPENDV, or #REPLYV
•
Specifying a STRUCT as the destination variable for #EXTRACTV
•
Appearing as the prompt or destination variable for #INPUTV
•
Initializing STRUCTs using #SSINIT or #SSNULL
•
Accepting token entities from #SSGETV
•
Supplying token entities to #SSGET(V), #SSPUT(V), or #SSNULL
The use of an item in a structure is limited to:
•
Describing the item using #VARIABLEINFO (programmatic) or VARINFO
(interactive)
•
Invoking the item with the use of square brackets
•
Assigning values using #SET (programmatic) or SET VARIABLE (interactive),
#SETBYTES, or #SETV
•
Comparing the item to another item or structure using #COMPAREV
(programmatic) or _COMPAREV (interactive)
Declaring a Structure Body
The syntax for a structure body is either a BEGIN ... END construct or a LIKE
construct:
{BEGIN declaration [ declaration ... ] END}
{LIKE structure-identifier;}
declaration
is the declaration of a STRUCT item: a simple data item declaration, an array data
item declaration, a substructure declaration, or a FILLER declaration. These types
of declarations are described later.
LIKE structure-identifier
specifies that the definition of a structure or substructure is to be identical to that of
an existing structure or substructure. structure-identifier is the name of an
existing variable of type STRUCT.