BookmarkSubscribeRSS Feed
deleted_user
Not applicable
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
1 REPLY 1
deleted_user
Not applicable
Sorry, I put the message in the wrong category.

/Anne

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Discussion stats
  • 1 reply
  • 764 views
  • 0 likes
  • 1 in conversation