<?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: DMNORMCP in SAS E-Miner Generated Code in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185492#M47102</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the benefit of others, here is the response I got from SAS Support about the issue (they are still very tight lipped about the code behind it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;The short answer is that the macro is just cleaning up temporarily during the scoring process.&amp;nbsp; Your variable in the data is not changed.&amp;nbsp; You can think of it as a utility macro that is used just during the score calculation.&amp;nbsp; You might notice other variables in the score code too that are just temporarily there for the purpose of making a calculation. &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Example: suppose that you code a DATA step with an array. You use some counter J for a "do j=1 to Dim(myarray);" loop. At the end, you drop J.&amp;nbsp; For someone trying to interpret your code, J is just a utility (for lack of a better term) variable that was used temporarily in the calculation.&amp;nbsp; It has no interpretation for the actual outcome.&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 21:06:22 GMT</pubDate>
    <dc:creator>JBerry</dc:creator>
    <dc:date>2014-10-16T21:06:22Z</dc:date>
    <item>
      <title>DMNORMCP in SAS E-Miner Generated Code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185487#M47097</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When generating "Optimized SAS Code" from Enterprise Miner, I notice this macro being invoked&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;%DMNORMCP&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't seem to find any documentation of what is behind it, or what it is doing. It seems to be called in conjunction with variable transformations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a snippet of code of how it's used:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;length _NORM32 $ 32;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;%DMNORMCP( v1 , _NORM32 )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;drop _NORM32;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;select(_NORM32);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; when("01:LOW--83.91706&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " ) _PVAL = _PVAL + -0.533663188;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; when("02:-83.91706-HIGH, MISSING&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " ) _PVAL = _PVAL + 0;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;end;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 16:08:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185487#M47097</guid>
      <dc:creator>JBerry</dc:creator>
      <dc:date>2014-10-15T16:08:30Z</dc:date>
    </item>
    <item>
      <title>Re: DMNORMCP in SAS E-Miner Generated Code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185488#M47098</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There will be even many more of them.&lt;/P&gt;&lt;P&gt;Some are documented in the online doc of miner.&lt;/P&gt;&lt;P&gt;You are probably not interested in every machine instruction that gets called. Why are you interested in this one?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 16:48:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185488#M47098</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-15T16:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: DMNORMCP in SAS E-Miner Generated Code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185489#M47099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this the one that I haven't been able to find documentation for, and I'm curious of what it's doing. I generally avoid letting my data go through a black box, so I want to modify the score-code produced by E-Miner so that it isn't using any macros. If I know what it's doing, I can easily recreate it within the datastep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 17:09:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185489#M47099</guid>
      <dc:creator>JBerry</dc:creator>
      <dc:date>2014-10-15T17:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: DMNORMCP in SAS E-Miner Generated Code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185490#M47100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do not get it. It looks you are trying to reverse engineer some automatic generated code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the last steps of eminer is a scoring node. That one is able to deliver the model formula as some java or other language code for doing the scoring in an other system.&lt;/P&gt;&lt;P&gt;In database processing is possible with sas tooling. &lt;/P&gt;&lt;P&gt;May be this part is not the maturity level as wished but it is existent.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 06:26:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185490#M47100</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-16T06:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: DMNORMCP in SAS E-Miner Generated Code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185491#M47101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, I am trying to know what the macro is doing. Is it modifying the variable's value?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However your suggestion is a good one - I can probably tell the SCORE node to create java code, and then find the place in the java code where this macro is used, and decipher what it's doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was hoping there was an explanation or documentation somewhere, I'll open a ticket w/ SAS Support and if I get an answer, I'll post it here for the future benefit of others.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 16:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185491#M47101</guid>
      <dc:creator>JBerry</dc:creator>
      <dc:date>2014-10-16T16:44:20Z</dc:date>
    </item>
    <item>
      <title>Re: DMNORMCP in SAS E-Miner Generated Code</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185492#M47102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the benefit of others, here is the response I got from SAS Support about the issue (they are still very tight lipped about the code behind it)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;The short answer is that the macro is just cleaning up temporarily during the scoring process.&amp;nbsp; Your variable in the data is not changed.&amp;nbsp; You can think of it as a utility macro that is used just during the score calculation.&amp;nbsp; You might notice other variables in the score code too that are just temporarily there for the purpose of making a calculation. &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Example: suppose that you code a DATA step with an array. You use some counter J for a "do j=1 to Dim(myarray);" loop. At the end, you drop J.&amp;nbsp; For someone trying to interpret your code, J is just a utility (for lack of a better term) variable that was used temporarily in the calculation.&amp;nbsp; It has no interpretation for the actual outcome.&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 21:06:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/DMNORMCP-in-SAS-E-Miner-Generated-Code/m-p/185492#M47102</guid>
      <dc:creator>JBerry</dc:creator>
      <dc:date>2014-10-16T21:06:22Z</dc:date>
    </item>
  </channel>
</rss>

