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;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.