FIELD NAMES

You can use the FIELD NAMES clause to specify field order. The syntax is as follows:

FIELD NAMES {FIRST | FIRST IGNORE | ALL | ALL IGNORE| NONE}

The FIELD NAMES options are:

  • FIRST --Indicates that the first data file contains a list of field names for the data in the first record. This list uses the same delimiter as the data in the data file. This record is read and used to set up the mapping between the fields in the data file and the columns in the target table. This record is skipped when the data is processed. This can be useful if the order of the fields in the data file is different from the order of the columns in the table, or if the number of fields in the data file is different from the number of columns in the target table.

  • FIRST IGNORE--Indicates that the first data file contains a list of field names for the data in the first record, but that the information should be ignored. This record is skipped when the data is processed, but is not used for setting up the fields.

  • ALL --Indicates that all data files contain the list of column names for the data in the first record. The first record is skipped in each data file when the data is processed. It is assumed that the list is the same in each data file. If that is not the case, then the load terminates when a mismatch is found on a data file.

  • ALL IGNORE--Indicates that all data files contain a list of field names for the data in the first record, but that the information should be ignored. This record is skipped when the data is processed in every data file, but it is not used for setting up the fields.

  • NONE--Indicates that the data file contains normal data in the first record. This is the default option.