I would like to build a prompt in SAS EG 8.2 that gives the user a list of years to chose from. The list should include all years from, lets say t-3 to t+1, where t is the current year. As you can see in the example below I started out quite well. However, now I would like the "list of values" to be populated, dynamically, with the years 2019-2023, assuming that the current year is 2022. Next year, 2023, the "list of values" should be populated dynamically with 2020-2024 and so on.
How can I acheive this?
... View more