The FORMAT procedure creates formats that will later be associated with variables in a FORMAT statement.
Example:
PROC FORMAT;
VALUE $GNRF "F"="FEMALE"
"M"="MALE"
;
RUN;
PROC FREQ DATA=araw.demo06q1;
TABLES gndr_cod/MISSING;
FORMAT gndr_cod $gnrf.;
RUN;
No comments:
Post a Comment