Supposeyou work for the UC basketball program. Your boss gives you a file that list the dates
of all Big East conference basketballgames, the home team, visiting team, home score and
visitors score:
12/10/2005
Cincinnati Syracuse 73 89
Georgetown St Johns 92 79
Louisville Depaul 59 58
12/17/2005
Louisville Marquette 76 72
Villanova Pittsburgh 77 76
01/05/2006
Rutgers Cincinnati 54 71
a) Write a SAS program to read the data (sayA:\SCORES.TXT) into a SAS data set that conatins
date, home team, visiting team, homescore and visitor score for each game.
第一题我写的程序
datascores;INFORMATdate mmddyy10. hometeam $10.visitingteam $10. homescore visitscore;infile'D:\scores.txt';inputdate hometeam $ visitingteam $ homescore visitorscore ;procprint data=scores;FORMATdate mmddyy10.;run;
第二题是Writea SAS program that will compute the number of wins and losses for each team.求指点