SPI Tokens
Data Definition Language (DDL) Reference Manual — 426798-002
7 -7
TOKEN-TYPE Statement
DDL generates the token-type value by left-shifting the token length in the second
(low-order) byte and combining it with the token data type in the first (high-
order) byte.
•
TAL source code:
Literal ZSPI^TYP^INT = 2 '<<' 8 + 2;
Literal ASSN^TYP^STATUS = 2 '<<' 8 + 2;
Literal ASSN^TYP^VARIABLE^TOKEN = 3 '<<' 8 + 255;
The generated values are identical to the values generated for COBOL or TACL
source-code output from the same TOKEN-TYPE statements.
•
TACL source code:
?Section ZSPI^TYP^INT Struct
BEGIN
UINT TOKEN^TYPE VALUE 514;
END;
?Section ASSN^TYP^STATUS Struct
BEGIN
UINT TOKEN^TYPE VALUE 514;
END;
?Section ASSN^TYP^VARIABLE^TOKEN Struct
BEGIN
UINT TOKEN^TYPE VALUE 1023;
END;
The generated values are identical to the values generated for pTAL, TAL, or
COBOL source-code output from the same TOKEN-TYPE statements.
•
C source code:
#pragma section zspi_typ_int
#define ZSPI_TYP_INT 514U
#pragma section assn_typ_status
#define ASSN_TYP_STATUS 514U
#pragma section assn_typ_variable_token
#define ASSN_TYP_VARIABLE_TOKEN 1023U
The generated values are identical to the values generated for COBOL, TAL, or
TACL source-code output from the same TOKEN-TYPE statements.
•
Pascal source code:
?Section ZSPI_TYP_INT
CONST ZSPI_TYP_INT = 514;
?Section ASSN_TYP_STATUS
CONST ASSN_TYP_STATUS = 514;
Содержание 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 ...