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.



#Automation


#Applicationintegration
#webMethods
#Integration
 View Only
  • 1.  substring workaround

    Posted 09/16/03 10:00 AM

    Hi,

    I have a node for dob that is formatted as “September 15, 2003”. I need to extract the year for two different purposes. One, for filtering the result set by year (eg. dobYear < 1965). Two, for calculating the number of instances by age bracket (eg. 24-29).

    In the absence of a substring function what are the alternatives? I was hoping I could have done a substring on dob from dob length-4 to dob length.

    Thanks,
    Steve


    #webMethods
    #API-Management
    #Tamino


  • 2.  RE: substring workaround

    Posted 09/17/03 09:13 AM

    The only thing I can think of is, as a workaround, store the year in the XML directly; for example,

    <dob><year>1967</year><month>10</month><day>20</day></dob>  

    Of course, you can still keep your original dob element too.

    Bill


    #webMethods
    #API-Management
    #Tamino