Creating IMS databases
To create a database, you must start with a CREATE DATABASE statement followed by the CREATE TABLESPACE and CREATE TABLE statements as they become applicable.
The default database description generated by a CREATE DATABASE statement is a database with an IMS PHIDAM OSAM access type. If you want a different database access type, then you can override it by specifying the desired type on the statement or use the LIKE keyword to generate a database description using attributes of an existing resource.
Task | With DBD source | Similar DDL statement |
---|---|---|
Define a DEDB database |
|
|
Task | With DBD source | Similar DDL statement |
---|---|---|
Define a HDAM database |
|
|
Task | With DBD source | Similar DDL statement |
---|---|---|
Define a root segment in a database |
|
|
- databases organization and access method
- table spaces
- tables and columns mappings in a database record
- relationships with other databases or tables
- primary keys and foreign keys
- programview (PSB) describing a programs characteristics and its use of tables, columns, and logical terminals
After you design your database and code the necessary DDL statements, you submit them to IMS through a Java™ IMS application. IMS continues to accept DDL statements to generate a DBD record until you also submit a COMMIT DDL statement, which ends the unit of work. IMS is then triggered to write the DBD record out to the IMS catalog and prepares for activation and use during database processing.