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?
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.
Ready to level-up your skills? Choose your own adventure.