BookmarkSubscribeRSS Feed
cons
Calcite | Level 5

Hello everybody.

 

IS it possible to combine the WHERE and NOT statement with operator IS NULL or IS MISSING?

IN Base 9.2, it isnt. But I did try it and it works. Please help me.

Thanks.

1 REPLY 1
FreelanceReinh
Jade | Level 19

Hello @cons,

 

Yes, you can combine the NOT operator with the IS NULL or IS MISSING operator in a WHERE statement.

 

I don't see a difference between the tables of WHERE statement operators for SAS 9.2 and SAS 9.4. There can be no doubt that a combination as in

where not (x is null);

is valid. Even the notation

where x is not null;

works and it is mentioned in the section "Use of Indexes" of the WHERE statement documentation of both SAS 9.2 and 9.4 (see links above).

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

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
  • 719 views
  • 2 likes
  • 2 in conversation