Each LONG Value to Be Unloaded in a Separate LONG Data File
When you unload LONG values, you must differentiate between the following cases:
Case 1: Each LONG value in a column to be unloaded is written to a separate LONG data file.
In the command for unloading data, you specify the name of the LONG data file with a number of placeholders for sequentially generated LONG data files 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 file is generated for this LONG value.
The generated unique file name enables the individual LONG data files to be assigned to the corresponding data record in the target table.
Use a sufficient number of numeric characters at the end of the file 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 Replication Manager 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 Replication Manager generates the file with the name
info.data.001 for the first LONG value to be unloaded, the file info.data.002 for the second, and so on.10,Excelsior,'info.daten.001'
30,Flora, 'info.daten.002'
60,Bellevue,'info.daten.003'