/* SAS data set options */ * Using options with the complicated scores data set; data scores; *infile 'z:\My Documents\teaching\stat_517\sasdata_scores.txt'; FILENAME webpage URL 'http://people.stat.sc.edu/hitchcock/sasdata_scores.txt'; INFILE webpage; INPUT gamedate MMDDYY10. +1 VisitingTeam $20. +8 vscore 2.0 +2 HomeTeam $20. +8 hscore 2.0 Note $CHAR16. Bet COMMA10. +5 gametime TIME8.; RUN; /* Just keeping a few variables */ data basicscores; set scores (KEEP = VisitingTeam vscore HomeTeam hscore); run; proc print data=basicscores (RENAME = (VisitingTeam=Visitor HomeTeam = Home)); title 'Just the Basics of the Scores Data Set'; run; /* Doing it another way by dropping variables */ data basicscores2; set scores (DROP = gamedate Note Bet gametime); run; proc print data=basicscores2 (FIRSTOBS = 4 OBS = 10); title 'Just the Basics --- Only a Selection of 7 Game Scores'; run;