Sample Schemas
Data Definition Language (DDL) Reference Manual — 426798-002
B- 9
Selected ZSPIDDL Statements
The SETSECTION commands in this example divide the host-language source files
into sections as recommended in the Distributed Systems Management (DSM)
Manual.
Selected ZSPIDDL Statements
The following DDL statements from the file ZSPIDEF.ZSPIDDL are either used by the
DDL statements in the file ASSNDDL or used in examples in this manual. They are
included here for documentation only. You should not copy these statements
individually
rather, you should use the command ?SOURCE ZSPIDEF.ZSPIDDL to
compile the entire set of standard DDL statements into your dictionary as shown in the
preceding set of DDL commands.
DEF zspi-ddl-int TYPE BINARY 16 SPI-NULL 0.
DEF zspi-ddl-int2 TYPE BINARY 32 SPI-NULL 0.
DEF zspi-ddl-uint TYPE BINARY 16 UNSIGNED SPI-NULL 0.
DEF zspi-ddl-enum PIC S9(4) COMP SPI-NULL 255
TACL enum.
DEF zspi-ddl-booleanTYPE zspi-ddl-int SPI-NULL " ".
DEF zspi-ddl-byte TYPE BINARY 8 UNSIGNED SPI-NULL 0.
DEF zspi-ddl-char8.
02 z-c PIC X(8) SPI-NULL " ".
02 z-s REDEFINES z-c.
03 z-i TYPE BINARY 16 OCCURS 4 TIMES.
02 z-b REDEFINES z-c PIC X OCCURS 8 TIMES.
END
DEF zspi-ddl-username TACL username.
02 z-groupname TYPE zspi-ddl-char8.
02 z-username TYPE zspi-ddl-char8.
END
CONSTANT zspi-tdt-int VALUE IS 2.
CONSTANT zspi-tdt-int2 VALUE IS 3.
CONSTANT zspi-tdt-map VALUE IS 8.
CONSTANT zspi-tdt-boolean VALUE IS 10.
CONSTANT zspi-tdt-enum VALUE IS 11.
CONSTANT zspi-tdt-byte VALUE IS 12.
CONSTANT zspi-tnm-command VALUE IS -510.
CONSTANT zspi-tnm-retcode VALUE IS 0.
TOKEN-TYPE zspi-typ-enum VALUE IS zspi-tdt-enum
DEF IS zspi-ddl-enum.
TOKEN-TYPE zspi-typ-map VALUE IS zspi-tdt-map
Note. Certain ZSPIDDL definitions cause DDL to issue warning messages when it generates
host-language source code. For example, the definition of ZSPI-DDL-BYTE causes DDL to
issue a warning when it generates COBOL source code. Because COBOL does not recognize
the BINARY 8 data type, DDL translates this definition to PIC X(1). For data type translations
that cause DDL to issue warnings, see
Appendix C, DDL Data Translation
.
Содержание 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 ...