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
SAS Super FREQ
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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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