Ask a Question related to IBM DB2, Design and Development.
-
Jack #1
moving data with imbedded <CR> or <LF>
I have run into an interesting problem. We have generated data that
contains bit data stored in a 16 byte character field. This last week
I was moving a database to a new server and realised that this bit
data can contain <CR> or <LF> characters within it. This caused the
load program all kinds of problems, since it saw the data as two
records. This was true in both delimited format or IXF format. I was
able to get most of the data moved, but I had a number of records that
I could not move.
Has anybody run into a similar issue and how did you get around it?
Jack
Jack Guest
-
Moving data from http to https
For a shopping cart-enable site, what is the best way to store and transfer a user's session data from non-secure to secure? The secure section... -
moving data from one data source to another
I'm trying to move data from one data source to another. I don't want to loop - because it will kill performance. A simple Select into or Insert... -
Can't print imbedded transparent GIF
I have an Illustrator CS document that I added a transparent GIF file to. When I try to print the document, I get an error like "can't print... -
Moving data between select boxes
Hi I have used ASP code to load data into two select boxes. The code below is used to move the selected data back and forth between the boxes. ... -
Newbie - Moving around (scrambling) data?
"Ricardo Forde" <anonymous@devdex.com> wrote in message news:e4Ixd9JRDHA.1712@TK2MSFTNGP12.phx.gbl... Why are you trying to do this? -
Ian #2
Re: moving data with imbedded <CR> or <LF>
Jack wrote:
IXF should not have this problem. With DEL format, you need to use the> I have run into an interesting problem. We have generated data that
> contains bit data stored in a 16 byte character field. This last week
> I was moving a database to a new server and realised that this bit
> data can contain <CR> or <LF> characters within it. This caused the
> load program all kinds of problems, since it saw the data as two
> records. This was true in both delimited format or IXF format. I was
> able to get most of the data moved, but I had a number of records that
> I could not move.
option "modified by delprioritychar"
-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
[url]http://www.newsfeeds.com[/url] - The #1 Newsgroup Service in the World!
-----== Over 100,000 Newsgroups - 19 Different Servers! =-----
Ian Guest
-
Mark Yudkin #3
Re: moving data with imbedded <CR> or <LF>
Is the column correctly defined as FOR BIT DATA? If not, conversion will
occur.
"Jack" <jbaker@marketron.com> wrote in message
news:13f72d37.0309170536.66dd21ba@posting.google.c om...> I have run into an interesting problem. We have generated data that
> contains bit data stored in a 16 byte character field. This last week
> I was moving a database to a new server and realised that this bit
> data can contain <CR> or <LF> characters within it. This caused the
> load program all kinds of problems, since it saw the data as two
> records. This was true in both delimited format or IXF format. I was
> able to get most of the data moved, but I had a number of records that
> I could not move.
>
> Has anybody run into a similar issue and how did you get around it?
>
> Jack
Mark Yudkin Guest
-
Derek Clarkson #4
Re: moving data with imbedded <CR> or <LF>
If nothing else works, one technique I've used in this sort of situation is
to run conversion code across the data. I.e.
1. Run something to convert all CR and LFs to some other characters. x01 and
x02 for example.
2. Dump the data of what ever you want to do with it.
3. Run another convertor on the newly stored data to replace the x01 and
x02s with CF and LFs again.
Its a bit longer and messy with convertor programs etc. But they aren't
usually hard to write and sometimes it's easy to camoflage whats causing
the problem rather than trying to find alternative software to handle it.
cio
Derek.
Derek Clarkson Guest



Reply With Quote

