IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Flat file with single quotes in around fields

    Posted Mon April 05, 2004 08:57 PM

    Hello, I have a flat file like this:
    ‘Order’,1,‘Order Description, for Tommy’,‘5’

    How do I define my schema such that it takes the string in ’ ', but outputs only the content, i.e. ouput should be
    Order = Order
    Number = 1
    Description = Order Description, for Tommy
    Quantity = 5

    Please help!
    Thanks


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 2.  RE: Flat file with single quotes in around fields

    Posted Mon April 05, 2004 09:05 PM

    In the FlatFile Schema Editor specify Under Field or Composite section-- Character string = ’

    HTH,


    #Integration-Server-and-ESB
    #edi
    #webMethods


  • 3.  RE: Flat file with single quotes in around fields

    Posted Mon April 05, 2004 09:08 PM

    Erric,
    Ignore my posting,since it won’t work as per your requirement.


    #webMethods
    #edi
    #Integration-Server-and-ESB


  • 4.  RE: Flat file with single quotes in around fields

    Posted Mon April 05, 2004 10:57 PM

    Eric,

    I do not believe there is any way to accomplish your goal via the flat file schema. However, to accomplish the same thing, why not just pass all of your flat file data into the pub.string:replace built-in service, and specify as your searchString and leave the replaceString empty? And if there are some apostrophes in the data that you want to keep, then you could call the replace service on a field by field basis after performing the convertToValues.

    HTH


    #edi
    #webMethods
    #Integration-Server-and-ESB


  • 5.  RE: Flat file with single quotes in around fields

    Posted Wed April 07, 2004 09:45 PM

    Thanks to all for responding, however I replaced the ’ with blank for fields in the file prior to processing and it works.


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 6.  RE: Flat file with single quotes in around fields

    Posted Tue April 13, 2004 03:51 AM

    BTW … replacing ’ with blank will not work as

    ‘Order’,1,‘Order Description, for Tommy’,‘5’

    Order Description
    for tommy

    will become two seperate fields
    I think we just need to replace ‘, or ,’ with ,

    cheerz


    #Integration-Server-and-ESB
    #webMethods
    #edi


  • 7.  RE: Flat file with single quotes in around fields

    Posted Tue April 13, 2004 03:20 PM

    Yeah, I saw that too Terry, but I was betting that:

    'Order',1,'Order Description, for Tommy','5'

    is really supposed to look like:

    'Order',1,'Order Description for Tommy','5'

    It sounds like he got things working though.


    #webMethods
    #Integration-Server-and-ESB
    #edi


  • 8.  RE: Flat file with single quotes in around fields

    Posted Wed April 14, 2004 04:46 PM

    Yes, I replaced ‘, and ,’ with | and it worked.
    Thanks for responding.


    #edi
    #webMethods
    #Integration-Server-and-ESB