BookmarkSubscribeRSS Feed
deleted_user
Not applicable
I cant figure out in 3.0 how to filter several different columns with the logical operator 'OR'...
1 REPLY 1
Cynthia_sas
Diamond | Level 26
Hi:
I no longer have EG 3.0 to test specifically. But in general, SAS expects OR conditions to be specified in one of 2 ways:
[pre]
if jobcode = 'PILOT' or jobcode='BAGCLK' or jobcode = 'FLTAT' . . .

if jobcode in ('PILOT', 'BAGCLK', 'FLTAT') . . .
[/pre]

So, if you are trying to select something that would look like this:
[pre]
if jobcode = 'PILOT' or 'BAGCLK' or 'FLTAT' . . .
[/pre]

Then EG would probably be unhappy. If you are using different columns, then the syntax would be similar:
[pre]
if jobcode = 'PILOT' or salary gt 50000 . . .
[/pre]

For help with the exact click path to get an OR condition in EG 3.0, you might consider contacting Tech Support.

cynthia

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 916 views
  • 0 likes
  • 2 in conversation