SPI Tokens
Data Definition Language (DDL) Reference Manual — 426798-002
7- 20
TOKEN-MAP Statement
•
SPI does provide a standard token type for all token maps. The standard token
type for token maps is ZSPI-TYP-MAP, which consists of the standard token data
type ZSPI-TDT-MAP and a token length of 255. Note that you never refer to these
definitions when you define a token map.
•
Each field in an extensible structured token must have a size, a type, and an SPI
null value. It is generally good practice to specify the field type by referring to one
of the standard SPI definitions. The names of these definitions have the following
form:
ZSPI-DDL-name
In this form, name uniquely identifies the definition.
•
The file ZSPIDEF.ZSPIDDL on the disk volume chosen for your system contains
the DDL definitions for any standard SPI definitions you need. To refer to the
standard definitions, compile this file into your dictionary, using the DDL SOURCE
command.
TOKEN-MAP Statement Examples
The following example describes an extensible structured token with 3 fields and a
total byte length of 12. Each field is defined by reference to a definition in the standard
SPI definition file ZSPIDEF.ZSPIDDL. The referenced definition determines the data
type of the field and specifies a default SPI null value for that field. The SPI null value
“X” explicitly specified for the field LOCATION overrides the standard SPI null value for
ZSPI-DDL-CHAR8, which is a set of empty quotes (“ ”). The token map assigns version
“C00” to each of these fields
−
any subsystem of version C00 or later can access the
entire structured token.
CONSTANT assn-tnm-jobinfo VALUE IS 3.
TOKEN-MAP jobinfo-map VALUE IS assn-tnm-jobinfo
DEF is assn-ddl-jobinfo.
VERSION “C00” FOR jnumber THRU location.
END
The following examples show the source code DDL generates from the preceding
TOKEN-MAP example.
DEF assn-ddl-jobinfo.
02 jnumber TYPE zspi-ddl-int.
02 priority TYPE zspi-ddl-int.
02 location TYPE zspi-ddl-char8 SPI-NULL "X".
END.
Defines fields in extensible
structure
VST703.vsd
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...