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

SPI Programming Manual427506-006
B-1
B Summary of DDL for SPI
This appendix reviews features of DDL that pertain to SPI data definitions. If you are
not familiar with DDL, this information will help you read and understand the DDL
source code in this and other related manuals.
If you are already familiar with DDL, parts of this appendix will give you an overview of
the clauses and statements added to DDL to support SPI:
If you are writing your own subsystem, you will need more information than is given in
this appendix. For more detailed information about DDL and its syntax, see the
Data
Definition Language (DDL) Reference Manual
.
The Role of DDL in SPI
DDL is a program and database development tool with capabilities that include
creating database schemas, creating data dictionaries, generating FUP commands
necessary to create the corresponding database, revising the source schemas and
data dictionaries, and generating programming-language source code for data
declarations that correspond to the source schemas.
For SPI, DDL is used to generate equivalent data declarations (definitions) in different
programming languagesTAL, C, COBOL, and TACL. Because the data declarations
are equivalent, application program modules coded in one language can communicate
with HP modules and other application modules coded in another language.
HP provides definition files containing data declarations used both by HP software
(including SPI and NonStop Kernel subsystems) and by applications that use SPI. For
each set of declarations, HP supplies equivalent definition files in TAL, C, COBOL,
TACL, and DDL. The TAL, C, COBOL, and TACL definition files are generated by the
DDL compiler, which translates the DDL source code into these other languages.
This manual and others describing programmatic interfaces based on SPI describe the
various data structures related to SPI messages containing commands, responses,
error lists, and event descriptions. Because these data structures can be in any one of
four languages, the manuals use DDL source code from the definition files as a
common notation to define the data structures.
Topic Page
The Role of DDL in SPI
B-1
General Language Rules for DDL B-2
DEFINITION (DEF) Statement B-2
Constants B-6
Type ENUM DEFs B-6
Token Types, Token Codes, and Token Maps B-6
DDL Data Translation B-7