<?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: Pre-defined prefixes Entreprise Miner in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310118#M4661</link>
    <description>&lt;P&gt;Thank you RW9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to try your code to rename the variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I insist: is there any document that describes the prefixes we shouldn't use in SAS variables, to avoid conflits in SAS Entreprise Miner Nodes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2016 15:15:34 GMT</pubDate>
    <dc:creator>rmlmrmlm</dc:creator>
    <dc:date>2016-11-08T15:15:34Z</dc:date>
    <item>
      <title>Pre-defined prefixes Entreprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310027#M4657</link>
      <description>&lt;P&gt;I have a DATASET with 4000 variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some of them have a prefixes like these:&lt;/P&gt;&lt;P&gt;W_&lt;/P&gt;&lt;P&gt;B_&lt;/P&gt;&lt;P&gt;P_&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Entreprise Miner metadata nodes automatically sets a role for these variables, according to its prefix:&lt;/P&gt;&lt;P&gt;W_ as Assessment role&lt;/P&gt;&lt;P&gt;B_ as Segment role&lt;/P&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is very boring because I have to change the role manually of about 800 variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find a list with pre-defined prefixes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can someone help me, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 11:39:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310027#M4657</guid>
      <dc:creator>rmlmrmlm</dc:creator>
      <dc:date>2016-11-08T11:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-defined prefixes Entreprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310076#M4660</link>
      <description>&lt;P&gt;Well, I don't know this Enterprise Miner application however in Base SAS the below code should work. &amp;nbsp;I would point out of course that 4000 variables isn't a very good structure, in fact much over 20 or 30 variables is a real pain to work with.&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set sashelp.vcolumns (where=(libname="&amp;lt;your lib&amp;gt;" and memname="&amp;lt;your dataset&amp;gt;" and scan(name,1,"_") in ("W","B","P","R"))) end=last;
  if _n_=1 then call execute('proc datasets nolist lib=&amp;lt;your_lib&amp;gt;;  modify &amp;lt;your dataset&amp;gt;;');
  call execute(cat(' rename ',name,'=',tranwrd(name,"_","x"),';'));
  if last then call execute(' quit;run;');
run;&lt;/PRE&gt;
&lt;P&gt;This generates a datasets procedure call with each variable with W_ B_ etc. prefix and renames them to Wx... Bx...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 14:15:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310076#M4660</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-11-08T14:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-defined prefixes Entreprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310118#M4661</link>
      <description>&lt;P&gt;Thank you RW9.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm going to try your code to rename the variables.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I insist: is there any document that describes the prefixes we shouldn't use in SAS variables, to avoid conflits in SAS Entreprise Miner Nodes?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 15:15:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310118#M4661</guid>
      <dc:creator>rmlmrmlm</dc:creator>
      <dc:date>2016-11-08T15:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: Pre-defined prefixes Entreprise Miner</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310140#M4663</link>
      <description>&lt;P&gt;This post has many of the prefixes that EM uses that you should try to avoid:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Scoring-Series-Part-2-SAS-Enterprise-Miner-Scoring-Output/ta-p/223842" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Scoring-Series-Part-2-SAS-Enterprise-Miner-Scoring-Output/ta-p/223842&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, you might want to look at this post to see how to use metacode.sas to set the roles/levels for your variables programmatically for all variables with a certain prefix (instead of renaming your variables):&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/Tip-Defining-Global-Metadata-for-SAS-Enterprise-Miner-Projects/ta-p/223835" target="_self"&gt;https://communities.sas.com/t5/SAS-Communities-Library/Tip-Defining-Global-Metadata-for-SAS-Enterprise-Miner-Projects/ta-p/223835&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 16:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Pre-defined-prefixes-Entreprise-Miner/m-p/310140#M4663</guid>
      <dc:creator>WendyCzika</dc:creator>
      <dc:date>2016-11-08T16:09:56Z</dc:date>
    </item>
  </channel>
</rss>

