我该如何在proc sql中获取观测值的行数,类似于datastep中proc sql的_N_变量?
例如:
proc sql outobs=5;
select case mod(<something>, 2)
when 0 then "EVEN"
else "ODD"
end
from maps.africa
end;
希望:
Row
----------
1 odd
2 even
3 odd
.
.
.