Selecting Data Records from the Source File
Use
When you
load data, you can select the data records according to their contents.The conditions defined here can be negated with
NOT, linked with AND and OR, or encapsulated as required. The Replication Manager weights the operators accordingly (condition).
You want to load those data records from the
The price in the data record is less than
400.00 (IF).DATALOAD TABLE hotel
IF POS 41-44 REAL < '400.00'
AND
POS 27-36 = 'BERLIN'
AND
(POS 20-25 = '13125' OR POS 20-25 = '13126')
AND NOT
POS 09-18 = 'City'
hno 01-04 INTEGER
name 09-18
zip 20-25 DECIMAL
place 27-36
price 41-44 REAL
INFILE 'hotel.data' FORMATTED
You want to load those data records from the source file
hotel.data into the target table hotel where the price is not more than 400,00:DATALOAD TABLE hotel
IF NOT 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