BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
sks521
Quartz | Level 8

Hi,

 

One of the variable I am using in my analysis have the following values; Admin, Unknown, GP, Nurse.

 

I want to delete observations where the values for this variable are 'Admin' and 'Unknown' and keep the other two.

 

How do I write the code please?

 

Thanks

S

1 ACCEPTED SOLUTION
1 REPLY 1

Catch up on SAS Innovate 2026

Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.

Explore 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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 1 reply
  • 1029 views
  • 1 like
  • 2 in conversation