Syntax
<field_pos> ::= <valSTART_POS> | <valSTART_POS> - <valEND_POS>
valSTART_POS |
Start position of a data field |
valEND_POS |
End position of a data field |
Use
Use this syntax rule to describe:
The position specification is dependent on the
format of the data stream.Format FORMATTED
If the data stream has the format
FORMATTED, enter only absolute start and end positions for the data fields in the data stream.The data stream
Position no. |
1 2 3 4 5 6 7 8 9 ..... |
0 1 m i l l e r – 1 0 2 7 7 N e w Y o r k - - - |
FASTLOAD command:
FASTLOAD TABLE customer
cno 01-02
name 03-10
zip 11-15
city 16-27
INFILE 'customer.data' FORMATTED
Format COMPRESSED
If the data stream has the format
COMPRESSED, enter only relative positions for the data fields in the data stream.The data stream
Position no. |
1 2 3 4 .... |
001,miller,10277,New York |
FASTLOAD command:
FASTLOAD TABLE customer
cno 1
name 2
zip 3
city 4
INFILE 'customer.data'
COMPRESSED is the SAP DB Loader default value.
The data stream
customer.data has the FORMATTED BINARY format:
Position no. |
1 2 3 4 5 6 7 8 9 ..... |
0 1 m i l l e r x x 1 0 2 7 7 N e w Y o r k : : : 0 2 s m i t h : 6 0 6 7 8 C h i c a g o : : : : : 0 3 k l e i n e r t 3 3 1 8 4 M i a m I |
The data fields have a standard format but do not end with a line break.
FASTLOAD command:
FASTLOAD TABLE customer
cno 01-02
name 03-10
zip 11-15
city 16-26
INFILE 'customer.data'