FORMATTED specifies a
format for a data file. Since this format is not the Replication Manager default, you must specify it explicitly in a command for loading or unloading data.The FORMATTED format can only be used for
source files in plain text. Binary data files must be loaded with the FORMATTED BINARY attribute.Data Lines
A data line in a data file corresponds to a data record that you want to load or unload.
All data lines have the same fixed length. Each line in the data file contains the individual data fields at the same position with a fixed length. Each data line ends with a line break.
Data Fields
The assignment between data fields in the data file and the table columns is made according to the position in a command for loading or unloading data.
Specified Position
The data field in the data file are described by their byte start and end position. The first possible byte start position is 1. Specifying an end position is optional. If no end position is specified for a data field, it has a length of 1.
The assignment between the data fields in the data file and table columns can be made in any order. The order does not affect the processing speed.
The positions do not need to follow each other directly when you load or unload data. When it unloads data, the Replication Manager fills any gaps with blank characters.
customer.data
Position no. |
1 2 3 4 5 6 7 8 9 ..... |
0 1 m u e l l e r - 6 9 1 8 5 W a l l d o r f - - - |
The data fields have a standard format.
FASTLOAD command:
FASTLOAD TABLE customer
cno 01-02
surname