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
Expand all | Collapse all

Using the %25 SQL wildcard after a variable in execSQL

  • 1.  Using the %25 SQL wildcard after a variable in execSQL

    Posted Thu May 20, 2004 07:58 PM

    How does one use the % SQL wildcard after a variable name in the execSQL service while using variable substitution.

    For Example:
    Lets say you want to grab all of the rows in the Authors table where the authors name started with the variable %FirstName%.

    • Assuming /FirstName = ‘Jon’

    Intended SQL after variable substitution:
    select * from Authors where name like ‘Jon%’

    Syntax I’m using (and doesn’t work)
    Select * from Authors where name like ‘%FirstName%%’

    wM fails to replace %FirstName% with ‘Jon’ because of the SQL wildcard following the variable name. (The second % after FirstName.)

    Thanks for the help


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


  • 2.  RE: Using the %25 SQL wildcard after a variable in execSQL

    Posted Thu May 20, 2004 09:50 PM

    I tried with the above string it is working for me.
    Make sure you checked perform varibale substitution.


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