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

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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
  • 1043 views
  • 1 like
  • 4 in conversation