BookmarkSubscribeRSS Feed
a_matharu
Calcite | Level 5

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-

68
69 data apt_data1 (rename=(no-show=show));
ERROR: no does not have a numeric suffix.
70 set aman.apt_data;
71 run;
 
kindly help.
2 REPLIES 2

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 861 views
  • 2 likes
  • 2 in conversation