Hi Ian,
Thanx for your thorough explanation.
Since you've been involved in major migration task, could you give some
hints or some tools or could you share any of your script? What tool
and which format should be used to get rid of backlash. Will awk/perl
do the needful?.
Please advise.
Ian wrote:[color=blue]
>
tojigneshshah@gmail.com wrote:[color=green]
> > It seems there is a line break up but i m not sure.
> >
> > The exported column has data type text (2GB) and target column
> > varchar(3000). Also tried with DB2's CLOB (2GB) but getting the same
> > result, ie: rows getting rejected after the backslash. ie: '\' .
> >
> > My source database is Informix 7.2 and used foll. syntax for unload.
> > "unload to <filename.del> select * from <tablename>".
> >
> > And the target datbase is DB2 UDB 8.2EEE and used foll.syntax for load
> > "load from <filename.del> of del modified by coldel| messages
> > <messagefile> insert into <tablename> nonrecoverable data buffer 4096"
> >[/color]
>
>
> 2 things: DB2 can support newlines in delimited ASCII files using the
> "modified by delprioritychar" option, provided the field that has the
> line break has the charater delimiter around it. For example, here's
> 1 record with 3 columns (1 decimal, 2 character fields):
>
> 1.0|"hello"|"this is a line
> with a break in the middle"
>
> That will load properly into DB2 with "modified by coldel|
> delprioritychar" option.
>
>
> However: Informix is retarded (from a DB2 perspective) in it's unload
> routines (I worked on a huge Informix->DB2 conversion and this was a
> major issue). It uses a '\' to signify that the record is continued
> (a la UNIX standard). In addition, it does not differentiate between a
> NULL character string and 0-length character string.
>
> So, you have two options: Write a tool to extract data from Informix
> that writes into a normal format, or write a tool to translate the file
> from Informix unload format to something DB2 will recognize.[/color]