I am supposed to do on this project and I have done in this way- proc format; value learningtypef 1 = 'elementary'; 2 = 'middle'; 3 = 'high'; data project2; input y1-y6; if 1 <= _n_ <= 6 then district = 'Hillsborough'; else if 7 <= _n_ <= 12 then district = 'Pinellas'; else if 13 <= _n_ <= 18 then district = 'Srasota'; else district = 'Polk'; if _n_ in ( 1, 2, 7, 8, 13, 14, 19, 20 ) then race = 'B'; else if _n_ in ( 3, 4, 9, 10, 15, 16, 21, 22 ) then race = 'W'; else race = 'O'; if _n_ in (1, 3, 5, 7, 9, 11, 13, 15, 17, 19, 21, 23, 25, ) then gender = 'Male'; else gender = 'Female'; array project2 (6) y1-y6; do i = 1 to 6; if i > 3 then learntype = 'active'; else learntype = 'slow'; if i in (1,4) then level = 1; else if i in (2,5 ) then level = 2; else level = 3; absentees = project2 (i); format learningtpe learningtypef.; Output; end; drop i y1-y6; Datalines; 100 300 1600 750 250 700 150 1150 2350 450 550 850 3350 850 1800 750 600 150 1250 350 700 400 1650 700 1650 700 1150 850 250 1100 200 1600 3700 450 600 750 3800 650 1750 700 550 250 1050 400 650 350 2200 1050 1550 750 1100 900 600 1250 250 1650 2700 450 650 450 2800 1150 1550 650 800 300 600 450 1150 450 2050 1100 350 350 1650 650 200 750 100 950 1350 500 600 900 1700 550 1550 850 750 50 1200 300 850 200 1600 750 1600 3700 10 400 350 2000 335 1750 1550 2100 700 100 480 650 550 650 1600 800 220 1100 950 1600 650 50 1640 2700 500 450 400 1450 1185 1550 1900 2150 750 50 100 300 1600 750 250 700 150 1150 2350 450 550 850 ; run; proc print data = project2; run; But the program is not running.I am a new learner,so I can't understand what 's the wrong and how to solve this.Please,suggest me in solving this.How I can have the number of absentees from the data file? Thanks.
... View more