Hi,
This is and ideas area for SAS, not a place to ask questions on specific problems. Post your question within the relevant subgroup.
As a tip, avoid putting data in dataset names (dates in this case), it will just make your coding effort far more complicated and harder to maintain, plus worse resource wise. Secondly look at the indsname= option on a set statement, you can manipulate that (which is the dataset name from the input dataset).
Hi,
This is and ideas area for SAS, not a place to ask questions on specific problems. Post your question within the relevant subgroup.
As a tip, avoid putting data in dataset names (dates in this case), it will just make your coding effort far more complicated and harder to maintain, plus worse resource wise. Secondly look at the indsname= option on a set statement, you can manipulate that (which is the dataset name from the input dataset).
The macro language is something we can get to. But first, should you change the objective? You can remove the DAY from the data set name, but why switch the order? If you keep the names as &YEAR&MONTH instead of &MONTH&YEAR, all the data set names would remain in order. Isn't that a better result?
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.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.