<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Renaming variables in SAS EM in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Renaming-variables-in-SAS-EM/m-p/362879#M5410</link>
    <description>&lt;P&gt;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&amp;nbsp;DATA step in the SAS Code node.&amp;nbsp; Assuming you are inputting and outputing a training data set, the&amp;nbsp;DATA step&amp;nbsp;might look something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data &amp;amp;EM_EXPORT_TRAIN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &amp;amp;EM_IMPORT_DATA (rename=(_NODE_=&amp;lt;newname&amp;gt;));&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 30 May 2017 21:01:45 GMT</pubDate>
    <dc:creator>candby</dc:creator>
    <dc:date>2017-05-30T21:01:45Z</dc:date>
    <item>
      <title>Renaming variables in SAS EM</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Renaming-variables-in-SAS-EM/m-p/361560#M5361</link>
      <description>&lt;P&gt;Hi everybody&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm new to SAS EM, so it may be a simple question to some.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Louise&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 12:52:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Renaming-variables-in-SAS-EM/m-p/361560#M5361</guid>
      <dc:creator>Lbind91</dc:creator>
      <dc:date>2017-05-25T12:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming variables in SAS EM</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Renaming-variables-in-SAS-EM/m-p/362879#M5410</link>
      <description>&lt;P&gt;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&amp;nbsp;DATA step in the SAS Code node.&amp;nbsp; Assuming you are inputting and outputing a training data set, the&amp;nbsp;DATA step&amp;nbsp;might look something like the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data &amp;amp;EM_EXPORT_TRAIN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; set &amp;amp;EM_IMPORT_DATA (rename=(_NODE_=&amp;lt;newname&amp;gt;));&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps.&lt;/P&gt;
&lt;P&gt;Dave&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2017 21:01:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Renaming-variables-in-SAS-EM/m-p/362879#M5410</guid>
      <dc:creator>candby</dc:creator>
      <dc:date>2017-05-30T21:01:45Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming variables in SAS EM</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Renaming-variables-in-SAS-EM/m-p/428115#M6566</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the approach described by&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49283"&gt;@candby&lt;/a&gt;&amp;nbsp; where you would need to do a data step for each data partition being passed through (e.g. Train, Validate, Test) but those changes would not be reflected in the resulting score code.&amp;nbsp; It might be easier to just add a line to the Score code section of a SAS Code node such as the following:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;MyNewVar = _NODE_;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new variable MYNEWVAR will contain the value of _NODE_ in every resulting data set that is passed through the modeling node and/or scored by score code from a subsequent Score node.&amp;nbsp; Admittedly, you are not renaming the variable but still can accomplish the desired outcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;
&lt;P&gt;Doug&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Jan 2018 17:30:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Renaming-variables-in-SAS-EM/m-p/428115#M6566</guid>
      <dc:creator>DougWielenga</dc:creator>
      <dc:date>2018-01-31T17:30:11Z</dc:date>
    </item>
  </channel>
</rss>

