Focal Point
[SOLVED] LIKE IN Operator

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/1927027196

September 25, 2019, 06:28 PM
mbondr
[SOLVED] LIKE IN Operator
I remember seeing something like this in the past, which worked. Does it really reliably exist?

WHERE &var LIKE IN ('%thing1%','%thing2%')

This message has been edited. Last edited by: mbondr,


WebFOCUS 8.2.04 (and climbing)
Windows 10, AppStudio
September 26, 2019, 09:11 AM
jgelona
I don't see that syntax in the language reference. The only reference to using multiple masks is the an IF statement.
To search for records with the LIKE operator, use 

IF field LIKE 'mask1' [OR 'mask2'...]To reject records based on the mask value, use 

IF field UNLIKE 'mask1' [OR 'mask2' ...]


If it worked in the past you may be a victim of code tightening.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
September 26, 2019, 01:51 PM
mbondr
Okay. As jgelona said, this is the syntax:

APPT_LOCATION_DISP NOT LIKE 'APIA%' OR 'CHU%' OR 'EAT%' OR . . .


WebFOCUS 8.2.04 (and climbing)
Windows 10, AppStudio