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.
Using the unique media name generated in this way, the individual LONG data streams are 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 is reached while the data is being unloaded, but there are still values left to be unloaded, the 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 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.
Content of the target data stream:
10,Excelsior,'info.data.001'
30,Flora, 'info.data.002'
60,Bellevue,'info.data.003'
See also:
All LONG Values to Be Unloaded in One LONG Data Stream