BookmarkSubscribeRSS Feed
6 REPLIES 6
Tom
Super User Tom
Super User

Since you can use SAS/Studio to run SAS code then the answer is yes.

For help with what code you want to run you will need to provide more details.

Reeza
Super User
Only if you have write access to the data set.
sasuser282
Calcite | Level 5

Thanks Rzzea. I uploaded data to SAS studio, and wanted to change variables names like we can do in SAS Enterprise Guide. 

Reeza
Super User
And how did you do that in EG? Via the GUI or did you write code or a Task?
fja
Lapis Lazuli | Level 10 fja
Lapis Lazuli | Level 10

Hello!

I do not know about manipulating metadata to rename variables, but what about simply copying the vars and dropping the old? Would that be a fix for you?

See the sketch below.

Cheers

data work.NewTestData;
	set work.TESTDATA;
	LovelyName = BadName;
	drop BadName;
run;

 

Tom
Super User Tom
Super User

@fja wrote:

Hello!

I do not know about manipulating metadata to rename variables, but what about simply copying the vars and dropping the old? Would that be a fix for you?

See the sketch below.

Cheers

data work.NewTestData;
	set work.TESTDATA;
	LovelyName = BadName;
	drop BadName;
run;

 


Note it is simpler to rename the variable.

data work.NewTestData;
	set work.TESTDATA;
	rename BadName = LovelyName ;
run;

sas-innovate-white.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.

 

Early bird rate extended! Save $200 when you sign up by March 31.

Register now!

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 6 replies
  • 1010 views
  • 1 like
  • 4 in conversation