Creating databases and database descriptors dynamically

Use the type-2 command CREATE DB to dynamically create a database. Use the type-2 command CREATE DBDESC to create a database descriptor. Optionally, you can use the Program Creation user exit routine (PGMCREAT) to dynamically create a database, but only one database can be created.

You can reference existing databases or database descriptors to use as a model by specifying the LIKE() parameter.

The CREATE DB and CREATE DBDESC commands are valid only in DB/DC and DBCTL systems.

The PGMCREAT user exit is valid in DB/DB, DBCTL, and DCCTL systems.