Generating a data definition statement for a schema

Use this notebook to re-create schema objects by generating the SQL statements necessary to duplicate the schema environment. The data definition language (DDL) statements are defined at the current server and include the selected schema and its dependents.


You can use this notebook to:

Authorities and privileges

To generate a DDL statement:

  1. Open the Generate DDL window.

  2. From the Objects page select which objects and dependent objects that you want generated. The available choices include the Distinct type, User defined function, Procedure, and the Schema privileges associated with the schema. If you clear the check boxes for certain objects, other related objects become unavailable (including some on the Options page). You must choose at least one object.

  3. Optional: From the Options page, select one or more options to change the statement from the default state.




  4. From the Output page, designate the file (mainframe or workstation) that will contain your new DDL statement. You can define a separate data set or file for the report and the generated statements. You must designate at least one output file name or data set name to generate the DDL.


  5. Click OK to generate the DDL for this object.

Related information

Data sets
Data set allocation by the generate DDL function
Schema
Databases