Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

Renaming variables in SAS EM

Reply
New Contributor
Posts: 3

Renaming variables in SAS EM

Hi everybody

 

I'm new to SAS EM, so it may be a simple question to some.

 

I want to rename a variable, which I derived from a consolidation tree. The output name of my new varaible is just _NODE_, which doesn't say much. How can I rename it? I have read, that I maybe could use the transform variables node - but I can't figure out how.

 

Thanks!

 

/Louise

SAS Employee
Posts: 2

Re: Renaming variables in SAS EM

As you note, the Applied Analytics Using Enterprise Miner notes (page 9-28) suggest using the Transform Variables node to change the name, but may be simpler to just perform a DATA step in the SAS Code node.  Assuming you are inputting and outputing a training data set, the DATA step might look something like the following:

 

data &EM_EXPORT_TRAIN;

     set &EM_IMPORT_DATA (rename=(_NODE_=<newname>));

run;

 

Hope this helps.

Dave

 

 

Ask a Question
Discussion stats
  • 1 reply
  • 138 views
  • 0 likes
  • 2 in conversation