GENERATE Statement Overview

The GENERATE statement identifies the DL/I DBD and PSB control blocks to be input to the syntax generator.
idms
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:
  • Record names
    -- Derived from DL/I segment names.
  • Set names
    -- Derived from the parent segment name and the child segment name in each DL/I hierarchy. The syntax generator concatenates the names with the literal "-".
    The resulting set names have a maximum length of 16 characters. If both names are 8 characters long, the syntax generator truncates the last character in the child name. Note that the truncation may cause duplicate set names.
  • Area name
    -- Derived from the DL/I DBD name. The syntax generator appends the literal "-REGION" to the resulting area name.
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:
  • GENERATE SCHEMA
  • GENERATE DMCL
  • GENERATE SUBSCHEMA
  • GENERATE IPSB
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.