Eternal0601 发表于 2013-12-15 06:17 
/*for your reference*/
proc format;
value sex 1='f'
This is a wrong way to get complete list values from a format.
data a;
format grp sex.;
do grp=1 to 2;
output;
end;
run;
The right way is to use proc format with the cntlout option. See example below.
proc format;
value sex 1='f'
2='m';
run;
proc format cntlout=sex;
run;
proc print data=sex;
run;