moving data with imbedded <CR> or <LF>

Ask a Question related to IBM DB2, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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. ...
    5. 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?
  3. #2

    Default Re: moving data with imbedded <CR> or <LF>

    Jack wrote:
    > 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.
    IXF should not have this problem. With DEL format, you need to use the
    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

  4. #3

    Default 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

  5. #4

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139