Previous Topic: Control StatementsNext Topic: GENERATE SCHEMA Statement


GENERATE Statement

The GENERATE statement identifies the DL/I DBD and PSB control blocks to be input to the syntax generator.

The syntax generator uses the DBD control blocks to produce the CA IDMS/DB schema, DMCL, and subschema source definitions. It uses the PSB control block to produce the source statements for the IPSB compiler.

Deriving Record, Set, and Area Names

The syntax generator derives the record, set, and area names for the output source statements from the DL/I control blocks, as follows:

You can override the generated names and specify different names using the modification statements (described later in this section).

Four Forms of the GENERATE Statement

The syntax generator provides four forms of the GENERATE statement:

Specify the GENERATE statement appropriate for the type of output you want.

Process One GENERATE Statement at a Time

Include only one GENERATE statement for each execution of the syntax generator. The syntax generator places its output in a single SYSPCH file. The syntax generator can process multiple GENERATE statements, but all the output files would go to the same file, and you would have to separate the output yourself.

The GENERATE statement must be coded immediately after the control statements and before any modification statements.