Data Definition Language (DDL) Reference Manual — 426798-002
7 -1
7
SPI Tokens
Tokens are units in SPI message buffers. You can use token definitions provided by
HP, and you can define your own tokens using DDL. HP supplies standard token
definitions in C, COBOL, Pascal, TACL, portable Transaction Application Language
(pTAL), and Transaction Application Language (TAL). When you define your own
tokens, you first define the tokens with the DDL statements described in this section
and then generate token definitions in a host language, using the C, COBOL, PASCAL,
pTAL, TACL, or TAL command described in
Section 9, DDL Compiler Commands
.
You need the statements described in this section only if you plan to write your own
subsystem using Subsystem Programmatic Interface (SPI) messages in a Distributed
Systems Management (DSM) environment.
If you are writing a management application that communicates with HP subsystems
using SPI messages, you use the token definitions supplied by HP. In such a case, this
section can help you understand the DDL excerpts in the manuals that describe SPI
programmatic interfaces.
This section describes the statements used to define token types, token codes, and
token maps. For a description of building and using SPI messages, see the Distributed
Systems Management (DSM) Manual.
SPI Token Definition
Tokens are defined by the following DDL dictionary objects:
A token is the smallest accessible unit in an SPI message. A token has two parts: an
identifying code and a token value. Each token value is identified by its code rather
than by its position in the buffer or by its address.
There are two forms of tokens: simple tokens and extensible structured tokens.
•
A simple token contains values that are single fields or fixed structures. You
identify a simple token by a token code. When defining a token code, you specify
the data type and size of a simple token by referring to its token type.
•
An extensible structured token contains values that are extensible; that is, new
fields can be added to the token in subsequent versions to provide new features.
You identify an extensible structured token by a token map. All extensible
structured tokens are of the same standard token type; you do not specify a token
type for these tokens.
Object
Definition
Token type
The data type and size of one or more tokens
Token code
The identifying code of a simple token
Token map
The identifying code of an extensible structured token