Introduction to DDL
Data Definition Language (DDL) Reference Manual — 426798-002
1 -8
Generating Source Code
the schema, it opens a file for each specified language, translates the subsequent
object definition statements into source code for those languages, and writes the code
to the language files.
You can also generate source code from an existing dictionary. To do this, you could
add a language command to your schema and recompile the entire schema. Typically,
however, you run DDL interactively, open the dictionary and a language source file,
and use the OUTPUT statement to specify the object definitions you want generated in
the source language. This technique is particularly useful for writing selected
definitions to the language source file.
Figure 1-4
on page 1-9 illustrates two techniques for generating language source code.
These techniques are as follows:
1. Generate source code for the entire schema.
Enter the commands to open a dictionary and a language source file in the schema
before entering the definitions. Then run DDL to compile the schema. DDL builds
the dictionary and then generates source code in any open language source file.
2. Generate source code for selected definitions.
Run DDL interactively; open the dictionary and a language source file with the
appropriate command; use an OUTPUT statement to specify the definitions you
want DDL to translate into source code. DDL generates the code for the specified
definitions and writes it to the open language source file. Close the language
source file before doing any more interactive processing.
Содержание DDL D40
Страница 36: ...Introduction to DDL Data Definition Language DDL Reference Manual 426798 002 1 14 Examining a Dictionary ...
Страница 66: ...Named Constants Data Definition Language DDL Reference Manual 426798 002 4 10 Standard SPI Constants ...
Страница 230: ...Dictionary Manipulation Statements Data Definition Language DDL Reference Manual 426798 002 8 14 SHOW USE OF Statement ...
Страница 370: ...Dictionary Maintenance Data Definition Language DDL Reference Manual 426798 002 10 24 Converting a Dictionary ...
Страница 456: ...Sample Schemas Data Definition Language DDL Reference Manual 426798 002 B 12 ASSNDDL Statements ...
Страница 470: ...DDL Data Translation Data Definition Language DDL Reference Manual 426798 002 C 14 ...
Страница 528: ...Dictionary Reports Data Definition Language DDL Reference Manual 426798 002 E 8 Requesting Reports ...
Страница 552: ...DDL Alignment Rules Data Definition Language DDL Reference Manual 426798 002 H 4 FIELDALIGN_SHARED8 Alignment Rules ...
Страница 576: ...Index Data Definition Language DDL Reference Manual 426798 002 Index 22 Special Characters ...