25%macro mp_distinctfmtvalues(
28 ,outvar=formatted_value
29 ,outds=work.mp_distinctfmtvalues
34 %let fmt=%mf_getvarformat(&libds,&var);
35 %let vtype=%mf_getvartype(&libds,&var);
38 create table &outds as
40 %
if &vtype=C & %trim(&fmt)=%str() %then %
do;
43 %
else %
if &vtype=C %then %
do;
46 %
else %
if %trim(&fmt)=%str() %then %
do;
52 as &outvar length=&varlen
54%mend mp_distinctfmtvalues;