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-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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