To continue reading for free, register below or login
To read more you must become a member of Search400.com
');
// -->

You have a couple of options: You could create a table with a CLOB column, store the text file in that column, and use LOB Locators to access the data.
For more information on this technique, consult the Redbook "DB2 UDB for AS/400 Object Relational Support"
Another option would be to copy the text file to a stream file on the IFS and use the CPYFRMIMPF command.
Example: CPYFRMIMPF FROMSTMF('/testdir/fromfile.txt') TOFILE(QGPL/TOFILE) MBROPT(*REPLACE) RCDDLM(*ALL) STRDLM(*NONE)
|