it can take parameters to accept the low-range and high-range and see if the value is within the range then display the exact range but if the value is less than or greater than the range then display '$$$'.
how do i make this code generic... can u please suggest a solution.
%macro check (dsn=, dsn2=); data &dsn; set &indsn (Keep=Age); run; proc format; value band 10 - <12 = '11 - 12' other = '$$$'; run; proc print data= &dsn; format age band.; run; %mend check; %check (dsn=, dsn2=);
... View more