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;

CFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

SAS Training: Just a Click Away

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

Browse our catalog!

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