Customer Portal

Removing random "|" characters from DBInputTable

Comments 2

  • Avatar
    the_goat
    0
    Comment actions Permalink
    Some time ago, Paulhbartosik posted a generic solution for trimming strings. With small change, you can tweak it for your purpose: http://forum.cloveretl.com/viewtopic.php?f=7&t=7545.

    But, may I suggest to enable "Quoted strings" in your FlatFileWriter? That way, you should not need to remove them at all. Some people are using CSV files as "stage" area in which case I'd recommend using CloverDataWriter instead - that will create semi-binary file containing both metadata and data. Benefit is, reading of this file is much faster than parsing it using FlatFileReader.

    Cheers!
  • Avatar
    Pedro Vazquez Rosario
    0
    Comment actions Permalink
    Hi Jesse,

    I replied to a similar question on how to replace on all fields without having to go one by one. I used the reformat and a code I created to accomplish this:

    http://forum.cloveretl.com/viewtopic.php?f=4&t=7306&hilit=replace#p12426

Please sign in to leave a comment.