Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to load flat files in DB2 tables?

Status
Not open for further replies.

viperrt10

Programmer
Aug 6, 2002
7
US
I am novice in DB2 area. I have a basic question. Are there any DB2 tools available to load a flat file in DB2 table?

We are running DB2 6.0 on IBM ES9000.

Thanks,
 
Hi There
Db2 has tools to import and export to flat file in several formats.

Db2 import from d:\temp.del of del insert into table1

The other format is ixf.

There is also a load function which is much faster than an import as it doesn't log so for big files use load but it might put you tablespace into backup pending mode so you will have to do a backup afterwards.


Hope this helps
 
I know DB2 on IBM mainframe has a load utility called DB2LOAD (or something like that) which takes flat csv files and puts them straight into tables. You just need to remember to format the individual values correctly for the insert e.g. strings in 'quotes' etc.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top