I am working in SAS 9.4. I have a data set and one of the variables is called 'state'. I need to remove all rows in which the 'state' variable is not equal to 'Alaska'. I also need to combine three other variables (month, day, and year) to create a new variable called EruptionDate and then drop those other 3 variables. The final thing that I can't figure out is how to only display the eruptions occuring after the year 2005. I am quite new to SAS and programming in general and this is what I have so far, but it's not working: DATA Alsaka; SET Work.earthquake; IF State = Alaska THEN EruptionDate = Month, Day, Year ELSE REMOVE row; DROP Month; DROP Day; DROP Year; RUN; PROC PRINT Data= Alaska; WHERE year GT 2005; RUN; Thanks for any help.
... View more