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.  How to create string with ASCII 31 character as delimiter between records

    Posted Tue October 08, 2002 12:07 AM

    Hello ,
    i have to create a delimiter file with non-printable character(ASCII 31) as delimiter.
    i am getting xml file as input. and i am crerating the record form it and adding header and trailer records for it, and finally creating the string using the runStringTemplate service.but i don’t know how to separate this string with this delimiter.can anybody give me some help here.it’s urgent.
    Thanks.
    rao


    #webMethods
    #Flow-and-Java-services
    #Integration-Server-and-ESB


  • 2.  RE: How to create string with ASCII 31 character as delimiter between records

    Posted Tue October 08, 2002 12:28 AM


  • 3.  RE: How to create string with ASCII 31 character as delimiter between records

    Posted Tue October 08, 2002 02:49 PM

    no. it will create tokens for me.i want to create a single string with delimiters.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 4.  RE: How to create string with ASCII 31 character as delimiter between records

    Posted Tue October 08, 2002 02:55 PM

    Take a look at [url=“wmusers.com”]wmusers.com for a technique you can use to get a non-printable character. You may need to make some adjustments to do exactly what you want. You could also just do your own Java service, “getDelimiter31” to simply return what you need.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 5.  RE: How to create string with ASCII 31 character as delimiter between records

    Posted Tue October 08, 2002 03:01 PM

    create the file using comma delimiter then invoke a Java Service using .Replace(x,y)


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services


  • 6.  RE: How to create string with ASCII 31 character as delimiter between records

    Posted Tue October 08, 2002 03:12 PM

    How can one type ASCII 31 at the keyboard to pass the right parm to replace? You can’t. That’s why you need a Java service to return a string holding the character that has been converted from another representation (e.g. convert decimal 31 to a character). Once you have that, then on can use it as a delimiter for makeString, as one of the parms to concat, etc.


    #Integration-Server-and-ESB
    #webMethods
    #Flow-and-Java-services


  • 7.  RE: How to create string with ASCII 31 character as delimiter between records

    Posted Fri October 11, 2002 10:03 PM

    Hi Rob,

    sure you can type char(31): Hold the ALT-key and type [3] and [1] on the number pad. Release ALT-key. Thats how I do it. Doesn’work for all sequences, though.

    Gunter


    #Flow-and-Java-services
    #Integration-Server-and-ESB
    #webMethods


  • 8.  RE: How to create string with ASCII 31 character as delimiter between records

    Posted Fri October 11, 2002 10:45 PM

    Nor in all environments. Good tip though.


    #webMethods
    #Integration-Server-and-ESB
    #Flow-and-Java-services