Previous Topic: Database Loader

Next Topic: Drop and Restore Constraints

How to Create and Use an Input File

You can use an input file and the pdm_userload utility to populate database tables.

The input file format is as follows:

To create an input file for the pdm_userload utility, do the following:

  1. Determine which table you want to load, and the fields you want to populate in that table.

    You must populate the Name or Symbol key field for each record that you load.

  2. Make a copy of the appropriate filename.dat file for the table that you are loading.
  3. Edit your newly created copy of the filename.dat file, as follows:
    1. Add an entry for each record to be loaded.
    2. From under the TABLE line (see the following example), remove fields that you do not want to populate.
      TABLE table_name
      fieldname1 fieldname4 . . . fieldnameN
      
  4. Save your file and exit from the editor.
  5. Run the pdm_userload utility and specify the file, as shown by the following example. In this example, the input file name is myData.dat:
    pdm_userload -f myData.dat
    

    The database table is populated.

More information:

pdm_userload--Add, Update, and Delete Database Records