Note: Built-In Function Rules Usage Options
Will call the OAM for the requested file and load all the data from the flat file specified.
This Built-In Function expects to be executed on the same machine as the OAM. Both the BIF and the OAM need to access the input file. If you execute the BIF from a local Function but redirect the File to SuperServer, it is your responsibility to ensure that the input filename is valid on both the client and the server.
Of course, while loading data into a file it is not expected that an IO is still in use from, say, calling LOAD_FILE_DATA from within a SELECT loop over the same file! At the completion of loading the file the OAM is completely closed, terminating all existing transactions.
Arguments
|
Return Values
|
Issues related to OAMs built prior to V10.0
When UNLOAD_FILE_DATA has been used with an OAM built prior to V10.0, then a CTX file must exist for V10.0 LOAD_FILE_DATA to work. Note that a the following steps to manually create a CTX file are not required when data is created by a V10.0 OAM.
Follow these steps to create a CTX file. V9.1 to V10.0 has been used in this example:
1. Return to V9.1 of LANSA that generated the data file.
2. Make a copy of the relevant V9.1 .CTD (Common Table Definition) file with an extension of .CTX (ex-Common Table Definition).
3. Copy the V9.1 .CTX file into: ...\x_win95\X_lansa\X_<partition>\Source\
For example: ...\x_win95\X_lansa\X_<partition>\Source\<filename>.CTX
4. Use the LOAD_FILE_DATA Built-In Function to load the unloaded data.
5. Delete the CTX file after using LOAD_FILE_DATA as it is no longer needed.