<?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: Rename variables of score dataset in Enterprise Miner in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Rename-variables-of-score-dataset-in-Enterprise-Miner/m-p/394076#M5983</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159468"&gt;@lucaruzzola&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;unfortunately the dataset that I must use to score, without being able to edit it, doesn't have a header with variable names, and SAS EM assigns VAR1 to VAR5 names to them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean you can't edit it? If you can't edit it, it usually means you can't change the names?&lt;/P&gt;
&lt;P&gt;Otherwise, how are you importing it into EM? That's usually the stage to fix it at...with 5 variables it's probably just as easy to rename it then GUI interface, otherwise the easiest method is to read it in and use a code block to rename the variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _em_2b_scored;
set imported_data;

rename var1=ID var2=age var3=sex var4=amount var5=random;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 07 Sep 2017 23:57:51 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-07T23:57:51Z</dc:date>
    <item>
      <title>Rename variables of score dataset in Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Rename-variables-of-score-dataset-in-Enterprise-Miner/m-p/394072#M5982</link>
      <description>&lt;P&gt;Hi, I am trying to score a trained model on a score dataset in SAS EM, unfortunately the dataset that I must use to score, without being able to edit it, doesn't have a header with variable names, and SAS EM assigns VAR1 to VAR5 names to them.&lt;/P&gt;&lt;P&gt;How can I change them so that they match the variable names used in training the model?&lt;/P&gt;&lt;P&gt;I tried with Transform variables, but it didn't work with score datasets and I wasn't able to find an option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for the help!&lt;/P&gt;</description>
      <pubDate>Thu, 07 Sep 2017 22:54:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Rename-variables-of-score-dataset-in-Enterprise-Miner/m-p/394072#M5982</guid>
      <dc:creator>lucaruzzola</dc:creator>
      <dc:date>2017-09-07T22:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Rename variables of score dataset in Enterprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Rename-variables-of-score-dataset-in-Enterprise-Miner/m-p/394076#M5983</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159468"&gt;@lucaruzzola&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;&amp;nbsp;unfortunately the dataset that I must use to score, without being able to edit it, doesn't have a header with variable names, and SAS EM assigns VAR1 to VAR5 names to them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;What do you mean you can't edit it? If you can't edit it, it usually means you can't change the names?&lt;/P&gt;
&lt;P&gt;Otherwise, how are you importing it into EM? That's usually the stage to fix it at...with 5 variables it's probably just as easy to rename it then GUI interface, otherwise the easiest method is to read it in and use a code block to rename the variables.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _em_2b_scored;
set imported_data;

rename var1=ID var2=age var3=sex var4=amount var5=random;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Sep 2017 23:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Rename-variables-of-score-dataset-in-Enterprise-Miner/m-p/394076#M5983</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-07T23:57:51Z</dc:date>
    </item>
  </channel>
</rss>

