Data Definition Language (DDL) Reference Manual
DDL Compiler Commands
Data Definition Language (DDL) Reference Manual—529431-004
9-26
COBOL
COBOL
The [NO]COBOL command:
•
Opens [closes] a COBOL source code file
•
Starts [stops] writing translated DDL object definitions to the COBOL source code
file
Default: NOCOBOL
COBOL
closes any open COBOL source code file, opens cobol-source-file,
translates subsequent DDL objects defined by statements or specified in OUTPUT
statements to COBOL source code statements, and writes the COBOL source
code statements to cobol-source-file.
cobol-source-file
is the name of the COBOL source code file to be created, if necessary, and
opened. The file must be one of:
•
EDIT file
•
Unstructured file
•
Sequential device (such as a terminal, spooler, or process)
If the file exists but is not one of these types, the DDL compiler issues an error
message and does not open the file.
If cobol-source-file is an EDIT file, and it exceeds 99,999 lines, the DDL
compiler issues FILE ERROR -
filename - Edit file line number too large (537) on
page A-18.
Default: home terminal
!
purges the contents of cobol-source-file before opening it, if it exists. If
cobol-source-file does not exist, the exclamation point has no effect.
Without the exclamation point, the DDL compiler appends the new COBOL source
code statements to the end of cobol-source-file.
NOCOBOL
closes any open COBOL source code file and stops translating DDL object
definitions to COBOL source code statements.
{ COBOL [ cobol-source-file [ ! ] ] }
{ NOCOBOL }