BookmarkSubscribeRSS Feed
Ronein
Onyx | Level 15

Hello

I have a problem.

I have a data set that one of the variables name is  Second_Max_niz_crd_1.2

As you can see in the name there is dot (.)

I want to rename the column  but I get an error.

Please not that the name is created by proc transpose and a data set with this variable name is created.

 

 

 

 

 

1 REPLY 1
unison
Lapis Lazuli | Level 10

Try:

rename 'Second_Max_niz_crd_1.2'n=new_name

 

Please post your proc transpose code as you may be able to circumvent the issue altogether by adjusting that code.

-unison
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
  • 1 reply
  • 442 views
  • 1 like
  • 2 in conversation