Thanks
KrishnaRaj
load from E:\IXF\ADDRESS.IXF of ixf insert into ADDRESS
import is another choice:
import from E:\IXF\ADDRESS.IXF of ixf replace_create into ADDRESS
In article <37303E98...@softhome.net>,
Rajagopal Krishna Raj <krish...@softhome.net> wrote:
> Hi,
> I have flat file with structure same as DB2 table.
> How do I load data from this flat file to the DB2 table ?
> Should I use a query to do it ?
> If a utility is used to load data into the DB2 table, How do I interpret
> spaces in the flat file as null in the DB2 table
>
> Thanks
> KrishnaRaj
>
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
1.) Write a program that reads the file, then inserts the record.
2.) Use IBM's load utility (DSNUPROC).
3.) Use a third part utility (i.e. BMC LoadPlus)
To use either utility, you need a control card which defines the table and
the type of load (delete and replace all vs. add new) as well as the input
file. The control card also can be used to say "If this is .... then it
should be null". I can send you sample JCL if you need me to. Writing a
program (option 1) allows you more flexibility in reformating the file, but
takes somewhat longer...
I can send you sample JCL for a load job if you would like. Contact me at
Mark....@BNSF.com
In article <37319089...@softhome.net>,