BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
JohnSAScom
Quartz | Level 8

How do I rename variable names in a SAS dataset using PROC DATASETS?

1 ACCEPTED SOLUTION

Accepted Solutions
novinosrin
Tourmaline | Level 20

proc datasets library=work nolist;
modify your_dataset;
rename var=var1;
quit;

View solution in original post

2 REPLIES 2
novinosrin
Tourmaline | Level 20

proc datasets library=work nolist;
modify your_dataset;
rename var=var1;
quit;

JohnSAScom
Quartz | Level 8

Thanks!

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
  • 979 views
  • 1 like
  • 2 in conversation