TACL Reference Manual

Variables
HP NonStop TACL Reference Manual429513-018
4-18
Declaring an Array Data Item
To describe a high-PIN process, use a PHANDLE item in place of a process
identifier (CRTPID).
TACL uses ten unsigned integers, separated by periods, to represent a process
handle in external form. Each integer can range from 0 to 65535. Use this external
form whenever you send a process handle to TACL (#SSPUT or #SET). This
example shows a process handle in TACL external form:
1.3.5.7.9.11.13.15.17.19
To display a process handle, you can use the OUTVAR command or #OUTPUTV
built-in function. In addition, the #VARIABLEINFO built-in function with option
TYPE returns type PHANDLE for a process handle field in a STRUCT. You can
specify a structure or an array within a structure. For more information, see the
next two subsections.
Declaring an Array Data Item
The array data item declaration associates an identifier with a group of data items with
the same type. The syntax for the array data item declaration is:
type identifier [ ( lower-bound : upper-bound ) ]
[ VALUE initial-value ] ;
type
is a data type as defined in Declaring a Simple Data Item on page 4-15.
identifier
is a name, 1 to 32 characters in length, which can include alphanumeric,
underscore, and circumflex characters; the first character cannot be numeric.
lower-bound
is a value in the range -32768 to +32767 that defines the number of the first array
element; it must be less than or equal to upper-bound.
upper-bound
is a value in the range -32768 to +32767 that defines the number of the last array
element; it must be greater than or equal to lower-bound.
VALUE initial-value
specifies the initial value for the field and the value to be given to the field anytime
the STRUCT is cleared. A STRUCT, like any variable, is cleared when set to a null
value.
The initial value used if you omit VALUE depends on the type of the item: Numeric
items are set to binary zero; other items are set to ASCII spaces.