Data Definition Language (DDL) Reference Manual

DDL Compiler Commands
Data Definition Language (DDL) Reference Manual529431-004
9-96
SECTION
SECTION
The SECTION command names a section of a DDL schema (without affecting the
section headings in host-language source code files).
section-name
is the name of a section.
A section is defined as all the source lines following a SECTION command, up to and
including the last line before the next SECTION command or the end of the DDL
schema.
You can divide a DDL schema into any number of sections.
You can use the SOURCE command to include selected sections of a DDL schema
file.
When specified in a SOURCE command, sections with the same name are grouped
together during compilation.
The SECTION command only names sections in a schema. You can use the
SETSECTION command to specify or suppress section names in host-language
source-code output.
The source code file in Figure 9-1
on page 9-97 has two sections: SALES-FILES and
EMPLOYEE-FILES. The EMPLOYEE-FILES section is made up of two portions of the
schema separated by the SALES-FILES section.
Example 9-48. SAVE Command
44> DDL
!?ERRORS 1
!?NOSAVE
!?DICT $data.sales
First line of DDL schema
...
Body of DDL schema
!?SAVE
!EXIT
Last line of DDL schema
SECTION section-name