proc format;
value agel 1="0-25"
2="25-30"
;
value sexl 1="boy"
2="gril"
;
data age_test;
infile 'D:\test.txt' firstobs=2 obs=3 ;
input age sex;
run;
proc print data=age_test;
format age agel.;
format sex sexl.;
run;