Previous Topic: Open the VSAM Data Set

Next Topic: Start the Database

Create the NDB

To do this, issue the NDB CREATE command:

NDB CREATE dbname [LOGSIZE=n] [LOADMODE] [LANG=lc]

The NDB CREATE command formats the UDB into an NDB by inserting control records that identify it as an NDB, and builds journal records for transaction management.

The nominated data set (UDB, and so on) cannot be created into an NDB unless the data set is empty and it meets the requirements such as KSDS, key length, and record length.

The NDB can be created as language-specific by specifying the LANG= operand. The uppercase translation table for the language specified is then used for all uppercase processing.

Specify the number of log blocks to format with the LOGSIZE parameter. If you want to fast-load data, use the LOADMODE option to put the database into load mode.

Following the NDB CREATE command, the data set is now formatted as an NDB, with no field definitions and no data records. From this point on, the other NDB command options and the &NDBxxx verbs can refer to it.