12-22-2013 07:54 PM
I have a dataset with
X: Character Variable
Y: Numeric Variable
I want to obtain the dataset with
X = a or b AND Y= 1
how do I write the code?
I understand that if I use "where" both variables must be of the same type (both character or both numeric).
12-23-2013 03:54 AM
You can use any condition, which is provided by tom, jegadish and karthik. and also you can use proc sql to print the same result. where if you use the proc sql, it should take less time to execute the code rather than using data step. Thanks, yaswanth
select * from sasuser.admit
where actlevel in ('HIGH','LOW')
and fee gt 100;
Need further help from the community? Please ask a new question.