The following code stores the number 30 into macro variable x, but it stores it as a character value, correct?
Given that, how does the following where clause work? If age is stored as numeric and the macro variable x as character, the where clause is conditioning on numeric variable greater than character variable. Why does this work?
%let x=30;
proc sql;
select *
from table
where age>&x;
quit;