Sample Schemas
Data Definition Language (DDL) Reference Manual — 426798-002
B -10
ASSNDDL Statements
OCCURS VARYING.
TOKEN-CODE zspi-tkn-command VALUE IS zspi-tnm-command
TOKEN-TYPE IS zspi-typ-enum.
TOKEN-CODE zspi-tkn-retcode VALUE IS zspi-tnm-retcode
TOKEN-TYPE IS zspi-typ-enum.
ASSNDDL Statements
The following DDL statements are in the sample DDL file ASSNDDL. They are the
statements needed by the sample subsystem in addition to those provided by
ZSPIDEF.ZSPIDDL.
? SECTION assn-defs
DEF assn-variable-token.
02 table-size TYPE zspi-ddl-int.
02 data-table TYPE zspi-ddl-int2 OCCURS 100
TIMES.
END
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".
02 jobclass-is-present TYPE zspi-ddl-boolean.
02 jobclass TYPE zspi-ddl-int.
02 jobusername TYPE zspi-ddl-username.
END
?SECTION assn-token-info
! Constants to define token numbers:
CONSTANT assn-tnm-my-status VALUE IS 101.
CONSTANT assn-tnm-stat-reply VALUE IS 102.
CONSTANT assn-tnm-jobinfo VALUE IS 3.
! Constants for subsystem-ID:
CONSTANT assn-val-yourco VALUE IS "YOUR-CO ".
CONSTANT assn-ssn-assn VALUE IS 1.
CONSTANT assn-val-version VALUE IS VERSION "D30".
! Constant for buffer length:
CONSTANT assn-val-buflen VALUE IS 600.
! Token-type definitions:
TOKEN-TYPE assn-typ-variable-token VALUE IS zspi-tdt-int2
OCCURS VARYING
DEF IS assn-variable-token.
TOKEN-TYPE assn-typ-status VALUE IS zspi-tdt-enum
DEF IS zspi-ddl-enum.