Source Command - HP DDL D40 Reference Manual

Data definition language
Table of Contents

Advertisement

DDL Compiler Commands

SOURCE Command

The SOURCE command directs the DDL compiler to compile a DDL source-schema
file or specified sections of that file.
SOURCE source-name [ ( section-name [ , section-name ] ...) ]
source-name
identifies the source-schema file to be compiled; source-name is a file name.
section-name
identifies a section within the source-schema file. If you do not specify a section,
DDL compiles the entire source schema. If you specify one or more sections, DDL
compiles only the specified sections.
SOURCE Command Guidelines
The following points are guidelines for using the SOURCE command:
A source-schema file is an EDIT file that contains DDL statements and commands;
it can be either a file created with the EDIT program or a DDL source file created
with the DDL command.
If you specify more than one section, the sections are compiled in the order they
occur in the source file.
A single SOURCE command can extend over more than one input line. The first
line begins with ?SOURCE, and each subsequent line begins with a question
mark.
Source-schema files can be nested; that is, source schema A can contain a
SOURCE command specifying source schema B, and source schema B can
contain a SOURCE command specifying source schema C.
If DDL is compiling a source-schema file and it encounters a SOURCE command
in that file, the DDL compiler performs the following sequence of actions:
1. Suspends compilation of the current file.
2. Opens the file specified in the SOURCE command and compiles either the
entire file or the specified sections.
3. Includes the compiled file (or sections) in the current file at the point where it
encounters the SOURCE command.
4. Resumes compiling the current file.
Data Definition Language (DDL) Reference Manual—426798-002
9- 98
SOURCE Command

Advertisement

Table of Contents
loading

Table of Contents