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?
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.