The following diagrams illustrate the syntax required to perform a DASDL compilation from CANDE:
DASDL Compilation from CANDE
┌◄────────────────────────────────────────────────┐ ── COMPILE ─┴─┬─/1*\─ AS $<database name> ──────────────────┬─┴────────► ├─/1\─┬────────┬─ DASDL ─┬────────────────────┤ │ ├─ WITH ─┤ └─ ON <family name> ─┤ │ └─ : ────┘ │ ├─/1\─<source file name>─┬────────────────────┤ │ └─ ON <family name> ─┤ └─ SYNTAX ────────────────────────────────────┘ ►─┬───────────────────────────────┬────────────────────────────────────┤ └─<compiler task equation list>─┘
<compiler task equation list>
┌◄───────────────────────────────────────────────┐ ──┴─ COMPILER ─┬─<task attribute assignment>─┬─ ; ─┴───────────────────┤ └─<file equation>─────────────┘
When a DASDL compilation is initiated through CANDE, the AS $<database name> option must be specified. If this option is omitted, a syntax error results.
The database name is an identifier containing from 1 to 17 letters, digits, and hyphens. The first character must be a letter. The last character must not be a hyphen.
Normally the current work file is used as the input source to the compilation. If a source file name is specified, this file is used in place of the work file.
When the SYNTAX option is specified, the input is checked only for valid syntax. Otherwise, the DASDL compiler checks the input for proper syntax, generates description and control files, and automatically initiates compilation of the tailored database software. The user can also control which of these functions are performed using the DMCONTROL and ZIP compiler control options.
Example
The following statement illustrates the syntax for performing a DASDL compilation from CANDE:
COMPILE AS $DBNAME WITH DASDL