Loading ROWID and row change timestamp columns
ROWID columns and row change timestamp columns can be designated as input fields for the LOAD utility.
ROWID columns
For a ROWID column that is defined as GENERATED ALWAYS, Db2 always generates a row ID.
For a ROWID column that is defined as GENERATED BY DEFAULT, the LOAD utility can load input data into this column. The input field must be specified as a ROWID. No conversions are allowed. The input data for a ROWID column must be a unique, valid value for a row ID. If the value of the row is not unique, a duplicate key violation occurs, and the load operation fails. In this case, you need to discard the duplicate value and re-run the LOAD job with a new unique value, or allow Db2 to generate the value of the row ID.
If you specify the ROWID option, you can also optionally specify the DEFAULTIF option. If the specified condition is met, the column is loaded with a value that is generated by Db2. You cannot use the NULLIF option with the ROWID keyword, because ROWID columns cannot be null.
If the ROWID column is part of the partitioning key, you can not specify the PART option.
Row change timestamp columns
For a row change timestamp column that is defined as GENERATED BY DEFAULT, the LOAD utility can load input data into this column.
For a row change timestamp column that is defined as GENERATED ALWAYS, the LOAD utility can load input data into this column only if you specify the OVERRIDE(ROWCHANGE) option. Otherwise, do not include this column in the field specification list or specify the IGNOREFIELDS YES option to indicate that you want LOAD to ignore this column and Db2 to generate the timestamp value.