simple_condition 

Syntax

<simple_condition> ::= POS <field_pos> <field_format> [HEX] <compare_operator> '<valLITERAL>'

POS

Key word

field_pos

Position of a value in the data record

field_format

Data type of the value

compare_operator

Compare operator

valLITERAL

Constant

As with the other fields in a data record, you use the position of a value that you want to compare to describe it. You only need to specify the value format if it is not CHAR.

You specify a constant as a plain text value and place it in quotation marks. The constant is converted to the data type of the value that you want to compare in the data record.

If the constant you want to use as a comparison value is a number, it must have a valid number format, that is, it must be a floating point number in mantissa/exponent notation, a fixed-point number with the currently defined decimal representation (or default decimal representation in the Replication Manager).

Use

This is a syntax rule for describing tables.

Use it to define the selection criterion that determines which records from the source file are loaded to which target table. The data records that are you want to load are selected by comparing them with a constant.

You want to load only those data records from the source file hotel.data where the price is less than 400.00 to the destination table hotel:

DATALOAD TABLE hotel
  IF POS 41-44 REAL < '400.00'
      hno     01-04 INTEGER
      name    09-18
      zip     20-25 DECIMAL
      place   27-36
      price   41-44 REAL
INFILE 'hotel.data' FORMATTED