You are on page 1of 2

Problem 1 Part b options linesize=78 nodate nonumber; data mydata; input name $ score1 score2 score3 score4 score5

final @@; cards; Gamma1 11.25 9.75 10 10 10 90 Delta1 9.5 7.5 8 10 10 95 Epsilon1 11.5 10 9.75 3.5 10 100 Theta1 12.5 10 9.5 9 10 100 ; run; proc print data=mydata; run;

Part c options linesize=78 nodate nonumber; data mydata; input name $1-9 score1 10-14 score2 16-19 score3 20-24 score4 26-28 score5 30-31 final 33-35; /*You may also use a simpler input statement:*/ /*input name $1-8 score1 score2 score3 score4 score5 final;*/ cards; Gamma1 11.25 9.75 10 10 10 90 Delta1 9.5 7.5 8 10 10 95 Epsilon1 11.5 10 9.75 3.5 10 100 Theta 1 12.5 10 9.5 9 10 100 ; run; proc print data=mydata; run;

Problem 2 data mydata; input School_District $ No_teachers No_students;

datalines; Granite 5829 200486 Jordan 12433 318992 Davis 2358 126331 ; Run; proc print data=mydata; run;

Problem 3
data mydata; input Time $1-5 With $ 7-11 Place $ 13-24 Length_of_Meeting $ 43-52; cards; 11:00 Sally Room 30 Personnel Review 1:00 Jim Jims Office Brake design 3:00 Nancy Lab Test results ; run; proc print data=mydata; run; Subject $ 26-41

45 minutes 30 minutes 30 minutes

You might also like