Renaming variables in a SAS dataset

Accepted Solution Solved
Reply
Contributor
Posts: 54
Accepted Solution

Renaming variables in a SAS dataset

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


Accepted Solutions
Solution
2 weeks ago
PROC Star
Posts: 1,836

Re: Renaming variables in a SAS dataset

Posted in reply to JohnSAScom

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

View solution in original post


All Replies
Solution
2 weeks ago
PROC Star
Posts: 1,836

Re: Renaming variables in a SAS dataset

Posted in reply to JohnSAScom

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

Contributor
Posts: 54

Re: Renaming variables in a SAS dataset

Posted in reply to novinosrin

Thanks!

☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 69 views
  • 1 like
  • 2 in conversation