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;

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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