21 %macro mp_distinctfmtvalues(
24 ,outvar=formatted_value
25 ,outds=work.mp_distinctfmtvalues
30 %let fmt=%mf_getvarformat(&libds,&var);
31 %let vtype=%mf_getvartype(&libds,&var);
34 create table &outds as
36 %
if &vtype=C & %trim(&fmt)=%str() %then %
do;
39 %
else %
if &vtype=C %then %
do;
42 %
else %
if %trim(&fmt)=%str() %then %
do;
48 as &outvar length=&varlen