PLEASE HELP IN SAS: The United States Geological Survey provides data on earthquakes of historical interest. The SAS data set called EARTHQUAKES contains data about earthquakes with a magnitude greater than 2.5 in the United States and its territories. The variables are year, month, day, state, and magnitude. You assign a new employee the task of writing a program to create a data set with just the earthquakes from Alaska and then print the eruption date and magnitude for Alaskan earthquakes occurring in 2005 or later. The following is the program the new employee gives you.
LIBNAME sasdata 'c:\MySASLib';
DATA alaska (DROP = Year Month Day);
SET sasdata.earthquakes;
IF State = 'Alaska'; /* Added single quotes around Alaska */
EruptionDate = MDY(Month,Day,Year);
RUN;
PROC PRINT DATA = alaska NOROWNUM;
WHERE Year > 2005; /* Changed GT to > */
VAR EruptionDate Magnitude; /* Corrected spelling of Magnitude */
TITLE "Alaska's Earthquakes in 2005 or Later"; /* Changed single quotes to double quotes */
FORMAT EruptionDate DATE10.;
RUN;