I have hundred thousands of records in my data table with data from 1990 an onwards.
After each year I want to run my code and get detailed statistics for that year, and some summary statistics for the 2 years before that year. I have code that produces these statistics. In that code I assign the year value to a variable in a data step.
But I would like to pass the year value when the program starts running. I don't want to be forced to change code text each new year.
In any "ordinary" programming language that would be easy.
How can that be made with SAS code?
/Anne