column_assignment 

Syntax

<column_assignment> ::= <valCOLUMN_NAME> <'valLITERAL'>
| <valCOLUMN_NAME> <
generate_spec>

Loading Constants: <valCOLUMN_NAME> <'valLITERAL'>

To load any constant, specify the constant in a position. Place the value in single quotation marks.

The Replication Manager handles the constant as an input value in plain text, and converts it into the format of the target column.

If you want to load the constant into a numeric column, it must have a valid numeric format (plain text value, binary value).

DATALOAD TABLE article
  foa         01-08 CHAR
  des         09-39 CHAR
  stock     40-43 INTEGER
  min_order   50-45 INTEGER
  ordered     46-49 INTEGER
  del_date  50-57 CHAR
  price       58-65 DECIMAL (2)
  weight      66-69 REAL
INFILE 'customer.data' FORMATTED

Loading Special Constants: <valCOLUMN_NAME> <generate_spec >

As well as loading free constants, you can also load the special values STAMP, USER, USERGROUP, DATE, TIME, TIMESTAMP, TRUE and FALSE.

DATALOAD TABLE article
  changed_by USER
  changed_on DATE
  changed_at TIME
  foa      1
  des      2
  stock  3 NULL IF POS 3 < '0'
INFILE 'customer.data'

Use

This is a syntax rule for describing columns.

When you load data, you can use this rule to specify that a constant value is loaded into the specified column for each loaded data record, and which value this constant must have.

To do this, specify the constant in a position in the command. No data will then be loaded from the data file for the appropriate column.

If the source file is empty, the constants specified in the command will not be loaded.