DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 96
SETSECTION Command
SETLOCALENAME Command Example
The following example shows the use of the SETLOCALENAME command to generate
output for text items in French.
? DICT !
? COBOL COBSRC !
? SETLOCALENAME no_NO.ISO8859-1
CONSTANT custnum-heading VALUE "Finnish" LN"fi_FI.ISO8859-1"
"Norwegian" LN"no_NO.ISO8859-1"
"Danish" LN"da_DK.ISO8859-1".
After execution, COBSRC contains:
* SCHEMA PRODUCED DATE - TIME : 11/16/1994 16:17:21
?SECTION CUSTNUM-HEADING TANDEM
* Constant CUSTNUM-HEADING created on 11/16/1994 at 16:17
01 CUSTNUM-HEADING PIC X(7), VALUE IS "Norwegian".
SETSECTION Command
The SETSECTION command directs the DDL compiler to identify a group of DDL
objects as a single, named section in any open C, COBOL, DDL, FORTRAN, Pascal,
pTAL, or TAL source-code file.
The SETSECTION command has no effect on sections in a DDL source schema. You
use the SECTION command to specify section names in a source schema.
SETSECTION section-name
directs the DDL compiler to immediately generate a ?SECTION heading with
section-name
on all currently open host-language source-code files (except
TACL files), and to generate no other ?SECTION headings until another
SETSECTION command or the end of the DDL session.
The section name is a DDL name.
SETSECTION
SETSECTION without
section-name
directs DDL to return to its default
functioning, in which it generates a separate ?SECTION heading for each
subsequent DDL object in the open source-code files with the object name as the
section name. SETSECTION remains in effect until DDL encounters a
SETSECTION command with
section-name
.
SETSECTION Command Guidelines
The following points are guidelines for using the SETSECTION command:
SETSECTION [ section-name ]