IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Issue with pipe character (|) in the database

    Posted 07/22/09 09:18 AM

    Originally posted by: SystemAdmin


    Hi,

    I have a pipe character (|) in one of the database tables, I am looking up. (Ex. Baby|Sitter)
    When I perform a lookup on the table for three of the columns, I am getting data as below:
    Apple|Baby|Sitter|100

    when I use the WORD function to read column values one by one, I will lose the last field. Is there any way to have a escape sequence to deal with this kind of data?

    Please help!

    Thanks,
    Ismail
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 2.  Re: Issue with pipe character (|) in the database

    Posted 07/22/09 10:42 AM

    Originally posted by: Yusuf@BOE


    Build the tree using a different delimiter?
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 3.  Re: Issue with pipe character (|) in the database

    Posted 07/23/09 02:08 PM

    Originally posted by: SystemAdmin


    Use this argument with WORD method

    =WORD(testin,"|",-1)
    • where testing is item holding "Apple|Baby|Sitter|100"

    Hopefully this will solve ur issue.
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: Issue with pipe character (|) in the database

    Posted 08/12/09 09:35 AM

    Originally posted by: mikeladd


    If you are using the MDQ, you can change the "Surround Table Columns With" to be a different character (Like a pound or exclamation point).
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 5.  Re: Issue with pipe character (|) in the database

    Posted 08/18/09 10:44 AM

    Originally posted by: SystemAdmin


    Thanks for the solution Mikeladd. Unfortunately I am not using mdq. Could you please let me know if there is any other way to achieve this?
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 6.  Re: Issue with pipe character (|) in the database

    Posted 08/18/09 03:51 PM

    Originally posted by: phil2030


    Are you getting the data from the db using dbquery/dblookup?
    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender


  • 7.  Re: Issue with pipe character (|) in the database

    Posted 08/19/09 04:50 AM

    Originally posted by: SystemAdmin


    Yes I am getting the result using the DBLookup function
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 8.  Re: Issue with pipe character (|) in the database

    Posted 08/19/09 07:57 AM

    Originally posted by: phil2030


    Okay, if that is what you are doing, the only thing I can think of is to substitute the character for something else in your query (maybe "&pipe;") and then replace it back in the map when needed. (You would have to do this for each column that might be affected.) The pipe is hard coded in the db* functions and there isn't a way of getting a release character in there (not that I think it would do you a lot of good in this case as you would still have the pipe just prefixed by something else, the word function would still return the same data).

    Alternatively, if you don't want to do the replacement then (if you can) you might want to refine you SQL query and return just the data that you are looking for when using the word function. This obviously might mean more db calls, but...

    Another alternative is to run a map to get the result set back and as Yusuf pointed out, replace the delimiter in the output tree it uses...
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender
    #DataExchange


  • 9.  Re: Issue with pipe character (|) in the database

    Posted 09/08/09 01:05 PM

    Originally posted by: SystemAdmin


    Finally I have to settle for the option of using the text "pipe" in the database when I need to use the | symbol as part of the data
    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender