SPI Programming Manual (G06.24+, H06.03+, J06.03+)

SPI Programming in TACL
SPI Programming Manual427506-006
8-6
Token Values
External Representations
TACL represents values of these token data types as numeric character strings
representing numbers within the acceptable ranges as given in Table 8-1
:
ZSPI^TDT^BYTE
ZSPI^TDT^BOOLEAN
ZSPI^TDT^ENUM
ZSPI^TDT^INT
ZSPI^TDT^INT2
ZSPI^TDT^INT4
ZSPI^TDT^UINT
ZSPI^TDT^TIMESTAMP
TACL represents values of token data types ZSPI^TDT^CHAR and
ZSPI^TDT^USERNAME as character strings of the same form accepted by other
languages. For ZSPI^TDT^CHAR values, that form is a number of contiguous
characters equal to the actual byte length of the token. (The actual byte length is the
value of the token-length field if that value is less than 255, or the length of the token
value if the token-length field is 255.)
TACL accepts and displays the usual external representations for values of token data
types ZSPI^TDT^CRTPID, ZSPI^TDT^DEVICE, ZSPI^TDT^FNAME,
ZSPI^TDT^FNAME32, and ZSPI^TDT^SUBVOL. For ZSPI^TDT^CRTPID,
ZSPI^TDT^DEVICE, ZSPI^TDT^FNAME, and ZSPI^TDT^SUBVOL values, systems
whose numbers cannot be found are given system number 255 on input, and shown as
\?? on output. For values of token data type ZSPI^TDT^CRTPID, programs can access
the creation time of an unnamed process or the
cpu,pin of any process only by
copying the value into a STRUCT whose fields have been redefined accordingly.
ZSPI^TDT^INT4 INT4 -(2**63) through (2**63)-1
ZSPI^TDT^MAP STRUCT Depends on STRUCT definition
ZSPI^TDT^SSCTL BYTE 0 through 255
ZSPI^TDT^SSID SSID Any valid subsystem ID
ZSPI^TDT^STRUCT STRUCT Depends on STRUCT definition
ZSPI^TDT^SUBVOL SUBVOL Any valid volume and subvolume name
ZSPI^TDT^TIMESTAMP TSTAMP -(2**63) through (2**63)-1
ZSPI^TDT^TOKENCODE INT2 -2147483648 through 2147483647 or, on
input, a 32-bit STRUCT
ZSPI^TDT^TRANSID TRANSID Any 64-bit TMF internal-format transaction ID
ZSPI^TDT^UINT UINT 0 through 65535
ZSPI^TDT^USERNAME USERNAME Any valid user name (not user number)
Table 8-1. TACL Data Types for SPI (page 2 of 2)
Token Data Type TACL Type Value Range