Each LONG Value to Be Inserted in a Separate LONG Data Stream
Each LONG value to be inserted into a column is in a separate
data stream.In the data stream, you specify the names of the data streams that contain the LONG values instead of the column values (if necessary, also entering position specifications). The entire data streams or parts of them are loaded as LONG values.
Complete data stream is loaded as LONG values
DATALOAD TABLE sqltravel10.hotel
hno 1
name 2
info 3
INFILE 'hotel.data'
Content of the data stream:
10,Excelsior,'EXCELSIOR.LNG'
30,Flora,'FLORA.LNG'
60,Bellevue,'BELLEVUE.LNG'
Parts of the data stream are loaded as LONG values.
DATALOAD TABLE sqltravel10.hotel
hno 1
name 2
info 3
INFILE 'hotel.data'
Content of the data stream:
10,Excelsior,'EXCELSIOR.LNG' 1-880
30,Flora,'FLORA.LNG' 8-1046
60,Bellevue,'BELLEVUE.LNG' 100-260
Specifying a Code Attribute
You can optionally specify a code attribute in the load command for all data streams that contain LONG values that are to be loaded. You can only enter a single code attribute for all data streams. You cannot specify a code attribute for each individual specified data stream.
Code Attribute for a Data Stream with LONG ValuesSpecifying the Code Attribute ASCII
DATALOAD TABLE sqltravel10.hotel
hno 1
name 2
info 3
INFILE 'hotel.data'
LONGFILE info ASCII
Content of the data stream:
10,Excelsior,'EXCELSIOR.LNG'
30,Flora,'FLORA.LNG'
60,Bellevue,'BELLEVUE.LNG'
No media name can be used after the keyword LONGFILE.
See also:
Loading LONG Values All LONG Values to Be Inserted in One LONG Data Stream