HP DDL D40 Reference Manual page 30

Data definition language
Table of Contents

Advertisement

Introduction to DDL
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.
Data Definition Language (DDL) Reference Manual—426798-002
1 -8
Generating Source Code

Advertisement

Table of Contents
loading

Table of Contents