Came across this nice macro. Good not only for work but for demoing the use of arrays and _numeric_.
%macro miss2zero;
array miss {*} _numeric_;
do i =1 to dim(miss);
if miss{i} = . then miss{i} = 0;
end;
%mend miss2zero;
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment