Hi,
I am trying to find a number of observations in a given dataset (after sub-setting if where condition is provided) using proc iml.
The where option present in "use, read and other" statements in proc iml does not allow to use "Mnemomic" operators (for ex: eq, ne, ge and so on).
I have tried to use the "where" as a dataset option as below
data one;
input v2;
cards;
1
2
3
4
45
56
;
run;
proc iml;
use one (where = (v2 le 40)) nobs a var _all_;
print a;
close one;
quit;
I am getting the value of a as "6".
Is there any way to sub-set the dataset (where statement with "Mnemomic" operators? and get the number of observations in the resulting dataset?
Thanks in Advance,
Venkat.