Hello everyone;
I am a new SAS user and am trying to create a data analysis project using SAS. I tried renaming a variable with the name "No-Show" to "Show". I tried using all the renaming methods but was not able to change the name of the variable. Kindly guide me on how I can do this. Your help is appreciated.
here is the code I wrote-
options validvarname=any;
libname aman "/home/u58428058/Aman2023";
data apt_data1 (rename=(no-show=show));
set aman.apt_data;
run;
this is the error I am getting-
For such names, you need to use a name literal:
data apt_data1 (rename=('no-show'n=show));
Thank you for your kind reply.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.