Loading Databases

To load a database you can either use the database management utility (as described in the section IMSDBU Utility) or perform the following steps:

From within the IDE

  1. In COBOL Explorer, right-click a .dbd file in your project, and click Database Utilities > Load.
  2. In the Load IMS database dialog, specify the .dat file to use in the Input/Output file name field.
  3. Set the correct File layout and any other settings as required, and click OK.

From an Enterprise Developer command prompt

  1. Navigate to the folder containing the .dat files.
  2. Enter the following command for each .dat file:
    mfims imsdbu load datfilename
Note: If you have more than one database to load you can use the Windows for command to simplify this operation, for example:
for %i in (*.dat) do mfims imsdbu load %i
datfilename is case sensitive.
Note: datfilename is case sensitive.

By default, this loads the database from a file with the same basename as datfilename but with the extension .DBU. You can change this behavior using the DSN and LAYOUT options.