Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-7
ANSICOBOL
ANSICOBOL
The [NO]ANSICOBOL command generates COBOL output in ANSI [TANDEM] format.
Default: NOANSICOBOL
ANSICOBOL
generates COBOL output in ANSI format.
NOANSICOBOL
generates COBOL output in TANDEM format.
ANSI and TANDEM formats are described in the COBOL Manual for TNS and TNS/R
Programs and the COBOL Manual for TNS/E Programs.
In Table 9-1 on page 9-2, the DDL compiler opens a COBOL source code file,
COBSRC, and adds the definition for NAME to that file.
In Example 9-2 on page 9-8, the DDL compiler opens a COBOL source code file,
COBSRC1, and adds the definition for name to that file.
[NO]ANSICOBOL
Example 9-1. ANSICOBOL Command
DDL Input
?ANSICOBOL
?COBOL COBSCR
DEF name.
02 last-name PIC X(12).
02 first-name PIC X(8).
02 midinit PIC X(2).
END.
DDL Output (COBOL Code)
* SCHEMA PRODUCED DATE - TIME : 9/14/2004 - 18:22:07
?SECTION NAME,ANSI
* Definition NAME created on 09/14/2004 at 18:22
01 NAME.
02 LAST-NAME PIC X(12).
02 FIRST-NAME PIC X(8).
02 MIDINIT PIC X(2).