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?
Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.
Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.
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.