Previous Topic Next topic Print topic


To load an IMS database

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 Solution Explorer, right-click a .dbd file in your project, and click Database Utilities > Load.
  2. In the Load dialog, specify the .dat file to use in the Input data set name field.
  3. Set the correct File Layout and any other settings as required, and click Execute.

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.

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.

From JCL

Execute the MFDBUJCL utility:

//step EXEC PGM=MFDBUJCL,PARM='LOAD,database,dataset'
//SYSOUT DD SYSOUT=*

Where database is the name of the database and dataset is the data set where the database is located. For more information about the MFDBUJCL program, see IMSDBUJCL Utility.

Previous Topic Next topic Print topic