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;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.