Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using LIKE for Variable

Status
Not open for further replies.

craig322

MIS
Apr 19, 2001
108
US
I am writing a fex that has the following line:

WHERE VENDOR_NAME CONTAINS '&VENDOR'

I would like this to be a LIKE clause instead so that whatever the user inputs is the first part of the clause. Unfortunately, I have had no luck coding a variable in a like clause. Does anyone have a working syntax to do this?

TIA
 
You can try

WHERE VENDOR LIKE '&VENDOR|%'

I did not try this yet, but it should work.
 
in focus... if you're doing a test you can use the string '$*' at the end of a variable to indicate all.. that start with whatever string...

-*) U010FR.FEX Global test for use code.
-SET &FRINPUT = &FRINPUT || '$*';
WHERE FROM_NAME EQ '&FRINPUT'

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top