hi ... the only way you get those missing values in your table is by adding the MISSING option in PROC FREQ (no matter where you use the FORMAT statement ... data step or PROC) ... using Linlin's data ... proc freq data=have; table v / missing; format v c5r.; run; did you use the MISSING option .. .if so, that's how the missing values end up in you table if you did, what I don't understand is how the missing values ended up listed LAST in your table ... if MISSING data are present in a table in PROC FREQ they are always listed first (for either numeric or character data) no matter what you do (use a format, use an ORDER= option, use a WEIGHT option which you must have to get the non-integer frequencies in your table, whatever) so, the table in your posting is a "mystery" also, a suggestion ... you can group the values that are assigned to missing with the format ... proc format; value C5R . , 77, 99 = " " 1 = "MOTHER (STEP, FOSTER, ADOPTIVE) OR FEMALE GUARDIAN" 2 = "FATHER (STEP, FOSTER, ADOPTIVE) OR MALE GUARDIAN" 3 = "GRANDPARENT" 4 = "OTHER FAMILY MEMBER/FRIEND" ; run;
... View more