HP DDL D40 Reference Manual page 315

Data definition language
Table of Contents

Advertisement

DDL Compiler Commands
PASCAL
opens the specified Pascal source file, translates all subsequent DDL objects
defined by statements or output from the dictionary into Pascal source statements,
and writes them to the open Pascal source file. If a Pascal source file is already
open, the command closes the current file and opens a new source file.
pascal-source-file
identifies the Pascal source file. If pascal-source-file is omitted, DDL lists the
Pascal source statements at the home terminal.
!
purges the contents of an existing Pascal source file before opening the file. If the
specified file does not exist, DDL ignores the exclamation point.
NOPASCAL
closes the currently open Pascal source file and stops translating subsequent DDL
objects. NOPASCAL is the default.
PASCAL Command Guidelines
The following points are guidelines for using the PASCAL command:
The specified Pascal source file must be an EDIT file, an unstructured file, or a
sequential device such as a terminal, a spooler, or a process. If the file exists but is
not one of these types, DDL issues an error message and does not open the file.
Only one Pascal source file can be open at a time. If you use the Pascal command
when you already have a Pascal source file open, DDL closes the current source
file before opening the new source file.
If the Pascal source file already exists and the exclamation point is omitted, DDL
appends the DDL objects to the end of the file's original contents. DDL does not
replace any existing objects.
The compiler can translate DDL objects specified in an OUTPUT statement only if
the dictionary containing these objects is open.
Each DDL object translated into Pascal source code is written to the Pascal source
file in a separate section that has the same name as the DDL object it contains.
You can suppress the generation of individual section headings with the
SETSECTION command.
DDL replaces any hyphen in a DDL name with an underscore (_) before writing the
name to the Pascal source file.
DDL replaces any field reference dot character (.) in a primary or alternate-key
name by an underscore before writing the name to the Pascal source file.
Before writing a name to a Pascal source file, DDL does the following:
Data Definition Language (DDL) Reference Manual—426798-002
9- 85
PASCAL Command

Advertisement

Table of Contents
loading

Table of Contents