DDL Compiler Commands
Data Definition Language (DDL) Reference Manual — 426798-002
9- 63
FORTRAN Command
•
The DDL compiler does not make all the lengthy syntax tests that the FORTRAN
compiler makes. The DDL compiler tests the DDL statements to ensure that they
do not violate the following rules of form specified by FORTRAN:
°
An elementary field must not be larger than 255 bytes.
°
An element must not be described as TYPE CHARACTER 8; this data type is
not supported in FORTRAN.
FORCHECK Command Example
The following example shows error and warning messages produced by a FORTRAN
syntax check on a RECORD statement.
When FORCHECK is in effect, DDL issues the following message for each
DEFINITION or RECORD statement that passes the syntax check:
FORTRAN CHECK completed for name
FORTRAN Command
The FORTRAN command instructs the DDL compiler to:
•
Create and open a FORTRAN source file or open an existing FORTRAN source
file.
•
Translate subsequent statements that describe DDL definitions and records into
FORTRAN source statements.
•
Translate DDL objects specified in subsequent OUTPUT statements into
FORTRAN source statements.
•
Write the FORTRAN source statements to the FORTRAN source file.
FORTRAN
opens the specified FORTRAN source file, translates all subsequent definitions
and records defined by statements or specified in OUTPUT statements into
FORTRAN source statements, and writes the source statements to the open
{ FORTRAN [ fortran-source-file [ ! ] ] | NOFORTRAN }
?FORCHECK
RECORD long.
FILE IS "$data.sales.long" KEY-SEQUENCED.
02 lfield PIC X(256).
02 sfield PIC X KEYTAG 0.
END
Record LONG size is 257 bytes.
*** WARNING *** FORTRAN OUTPUT DIAGNOSTICS.
*** ERROR *** Fortran element with size greater than 255 - LFIELD
?NOFORCHECK
Start syntax checking
Turn off checking
VST916.vsd