Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion Groups
Database Servers
DB2InformixIngresMS SQLOraclePervasive.SQLPostgreSQLProgressSybase
Desktop Databases
FileMakerFoxProMS AccessParadox
General
General DB TopicsDatabase Theory
Related Topics
Java Development.NET DevelopmentVB DevelopmentMore Topics ...

Database Forum / DB2 Topics / November 2004

Tip: Looking for answers? Try searching our database.

db2 corrupts data while loading from a TXT file

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Metin Esat - 29 Nov 2004 08:06 GMT
Hi,

I have to deal with the following problem to increase the integrity of
our data. While doing a load to a DB2 table from a TXT file if there
is a double quote before the data that needs to be parsed, load parser
ignores the specified coldel delimeter. For instance,

"óERKEKóS02 ó0123456óóóóANKARAóóóYAŞIYORóTÜRKİYEóTÜRKİYE

gets loaded in a single column while it should be parsed into several
columns because of the specified coldel ó. Here is the load script
that I use. This loads appx 7 million rows in the table and I think
atmost a couple of hundred rows have this problem.

LOAD FROM /data/TEST.CUST_V.TXT OF DEL
MODIFIED BY DATEFORMAT="YYYY-MM-DD"
TIMESTAMPFORMAT="YYYY-MM-DD HH:MM:SS.UUUUUU"
COLDELó
WARNINGCOUNT 1000
MESSAGES /data/logs/TEST.CUST_V.LOG
REPLACE INTO TEST.CUST
STATISTICS YES AND INDEXES ALL NONRECOVERABLE INDEXING MODE
AUTOSELECT@

THANKS ALOT IN ADVANCE!!
METIN
Wolfgang Riedel - 29 Nov 2004 11:16 GMT
> Hi,
>
[quoted text clipped - 22 lines]
> THANKS ALOT IN ADVANCE!!
> METIN

Hi Metin,

You have to use - modified by chardel s.th -,
if your data can contain '"'s.

hth,
Wolfgang
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.