BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
jkotek
Calcite | Level 5

I am comparing 2 datasets, and I want to filter out any row where the column is equal.  I have it working for character fields, but I'm having an issue with the numeric ones because a row that has the column equal, proc compare assigns an E.  

jkotek_0-1742409209904.png

 

I want to get rid of any row where the difference is = E, but I can't find the correct filter.  Here is what doesn't work.

column = E

column = 'E'

column < 0

column < .

column = .

column <> 0

column <> .

 

Any help would be appreciated.

Thanks,

Jeff

1 ACCEPTED SOLUTION

Accepted Solutions
Quentin
Super User

The E is a SAS Special Missing Value.  You can refer to it like:

IF column = .E then ... ;

The special missing values (._ .A to .Z) can be used to distinguish different reasons that a value might be missing.  For example, in a survey, you might have "Don't Know", "Refused", "Skipped" etc.

View solution in original post

1 REPLY 1
Quentin
Super User

The E is a SAS Special Missing Value.  You can refer to it like:

IF column = .E then ... ;

The special missing values (._ .A to .Z) can be used to distinguish different reasons that a value might be missing.  For example, in a survey, you might have "Don't Know", "Refused", "Skipped" etc.

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 577 views
  • 2 likes
  • 2 in conversation