Data Definition Language (DDL) Reference Manual
SPI Tokens
Data Definition Language (DDL) Reference Manual—529431-004
7-13
TOKEN-MAP
TOKEN-MAP
The TOKEN-MAP statement defines a token map and stores the definition in the open
dictionary.
If a TOKEN-MAP statement identifies a token map that already exists in the open
dictionary, the DDL compiler replaces the existing token map with the new token map.
If the appropriate source code file is open, the DDL compiler generates C, COBOL,
Pascal (on D-series systems), pTAL, TACL, or TAL token-map structures when it
executes the TOKEN-MAP statement.
map-name
is the name of an extensible structured token.
VALUE [ IS ] token-number
identifies a simple token. You can specify token-number either as an integer or
as the name of a constant in the open dictionary. The value of token-number
must be an integer in the range -32768 through 32767.
For subsystems that you write, token-number must be in the range from 1
through 9998. Numbers outside this range are reserved by HP or are previously
defined by SPI.
TOKEN-MAP map-name
VALUE [ IS ] token-number
DEF [ IS ] def-name
[ SSID subsystem-id ]
[ HEADING label ]
{ { VERSION { number } } }
{ { { "Lnn " } } }
{ { { constant-name } } }
{ { } }
{ { NONVERSION } }
{ }
{ FOR { field-name [ { THROUGH } field-name ] } }
{ { [ { THRU } ] } }
{ { } }
{ { group-name [ { THROUGH } group-name ] } }
{ { [ { THRU } ] }. } ...
END [ . ]