well @ambreen there are to many things wrong to point at just one.
Try this and see if you can find out what you did wrong.
data fda;
*set cdc.hw7;
input gender occupation judgedpreviously age;
cards;
1 1 1 21
1 1 1 48
2 2 1 54
2 1 2 35
;
PROC FORMAT;
VALUE Gender 1= 'Female' 2 = 'Male';
VALUE Occupation 1= 'Mstudent' 2 = 'Nurse' 3-5 = 'Resident' 6-10 = 'Fellow';
VALUE JudgedPreviously 1= 'Yes' 2= 'No';
VALUE Age 20-29 = 'second' 30-39 = 'third' 40 - 49 = 'fourth' 50 - 59 = 'fifth';
RUN;
PROC PRINT DATA= fda ;/*cdc.hw7;*/
FORMAT GENDER GENDER. Occupation Occupation. JudgedPreviously JudgedPreviously. AGE AGE.;
run;
The SAS System
Obs gender occupation judgedpreviously age
1 Female Mstudent Yes second
2 Female Mstudent Yes fourth
3 Male Nurse Yes fifth
4 Male Mstudent No third
... View more