Each LONG Value to Be Unloaded in a Separate LONG Data Stream
Each LONG value to be unloaded from a column is written to a separate
data stream.In the command for unloading data, you specify the name of the LONG data stream with a number of placeholders for sequential numbering of the generated LONG data streams for each LONG column that you want to unload.
If the LONG column you want to unload has no value in a data record (the value is an empty character string), an empty LONG data stream is generated for this LONG value.
The generated unique media name enables the individual LONG data streams to be assigned to the corresponding data record in the target table.
Use a sufficient number of numeric characters at the end of the media name as a placeholder. If the upper limit of the numbering is reached while the data is being unloaded, but there are still values left to be unloaded, the SAP DB Loader generates an error message and terminates the command.
DATAEXTRACT * FROM hotel
cno 1
name 2
info 3
OUTFILE 'hotel.data' FORMATTED
LONGFILE info 'info.data.###'
The SAP DB Loader generates the data stream with the name
info.data.001 for the first LONG value to be unloaded, the data stream info.data.002 for the second, and so on.10,Excelsior,'info.data.001'
30,Flora, 'info.data.002'
60,Bellevue,'info.data.003'
See also:
Unloading LONG Values All LONG Values to Be Unloaded in One LONG Data Stream