Hello:
I have a set of variables that start with the same prefix. I would like to drop some of them.
E.g., Variables are AC1 AC2 AC3 AC4 ...... AC100.
I'd like to retain the first 10 ACx variables and delete the rest after that.
Thanks for your help!
drop ac11-ac100;
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.