<?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: SAS E-Miner optimized code causes warnings when used in the SAS datastep in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/623193#M183419</link>
    <description>&lt;P&gt;Have you tired to always have an I_TARGET variable with a length of 32 when building the model?&lt;/P&gt;
&lt;P&gt;Data consistency avoids many headaches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 07 Feb 2020 22:18:29 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2020-02-07T22:18:29Z</dc:date>
    <item>
      <title>SAS E-Miner optimized code causes warnings when used in the SAS datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/619453#M181868</link>
      <description>&lt;P&gt;When I try to use the SAS optimized code in my datastep, i get the warning below:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;"WARNING: Length of character variable I_TARGET has already been set. "&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;When looking at the sas file itself, I see that the optimized code has three different length statements for the variable I_TARGET, each with a different value for the length ($32, $16 and $32).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way to fix this issue?&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The obvious solution is of course to take out two of the length statements which effectively fixes the warning. However I prefer not to do this since the models from E-Miner will be frequently updated and re-trained, meaning that the optimized code will be overwritten each time. This solution is therefore not suitable for automation purposes.&lt;/LI&gt;&lt;LI&gt;Might it be possible to fix the variable length in E-Miner itself ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this issue can not be solved easily,&amp;nbsp;can I turn off warnings on variable length for that particular data step somehow?&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jan 2020 10:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/619453#M181868</guid>
      <dc:creator>NickVe</dc:creator>
      <dc:date>2020-01-23T10:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-Miner optimized code causes warnings when used in the SAS datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/623193#M183419</link>
      <description>&lt;P&gt;Have you tired to always have an I_TARGET variable with a length of 32 when building the model?&lt;/P&gt;
&lt;P&gt;Data consistency avoids many headaches.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Feb 2020 22:18:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/623193#M183419</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-07T22:18:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-Miner optimized code causes warnings when used in the SAS datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/623517#M183585</link>
      <description>&lt;P&gt;Hi ChrisNZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I completely agree with you, this was actually also what I meant with the question "&lt;SPAN&gt;Might it be possible to fix the variable length in E-Miner itself ?&lt;/SPAN&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The variable I_TARGET is a variable that is generated by SAS itself in E-Miner for the model evaluation. Now I have been looking for some time where I could configure this variable in SAS, but unfortunately I have not found it yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you perhaps know where I could set this variable length in E-Miner?&lt;/P&gt;</description>
      <pubDate>Mon, 10 Feb 2020 07:29:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/623517#M183585</guid>
      <dc:creator>NickVe</dc:creator>
      <dc:date>2020-02-10T07:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-Miner optimized code causes warnings when used in the SAS datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/623758#M183678</link>
      <description>&lt;P&gt;I don't have EM, sorry.&lt;/P&gt;
&lt;P&gt;So you give EM a $32 variable and it spits out a $16 target variable?&lt;/P&gt;
&lt;P&gt;If that's the case:&lt;/P&gt;
&lt;P&gt;1. It seems wrong to me and you may want to ask tech support to reference this issue for the developers to fix.&lt;/P&gt;
&lt;P&gt;2. You need to fix it yourself sadly&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;If this issue can not be solved easily, can I turn off warnings on variable length for that particular data step somehow?&lt;/EM&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options varlenchk = nowarn;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;EM&gt;&lt;/EM&gt;Be careful that if &amp;nbsp; &lt;FONT face="courier new,courier"&gt;length ITARGET $16;&lt;/FONT&gt;&amp;nbsp;&amp;nbsp; comes first, you might end up with truncated values.&lt;/P&gt;
&lt;P&gt;I would be reluctant to use that option.&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;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 05:32:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/623758#M183678</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-02-11T05:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-Miner optimized code causes warnings when used in the SAS datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/624109#M183787</link>
      <description>&lt;P&gt;Hey CrhisNZ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No problem, I would have probably answered the same if I did not know E-miner. I am already very thankful for the information you have provided.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I share your concern considering turning off the warings. I would rather solve the problem than the symptoms since this is better for maintainability. I will check in with SAS support as well, maybe they might have a solution for this issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will keep this thread open for one more week. If there is no new answer in this time I will mark your answer as the solution since it essentially solves my problem.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Feb 2020 09:22:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/624109#M183787</guid>
      <dc:creator>NickVe</dc:creator>
      <dc:date>2020-02-12T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: SAS E-Miner optimized code causes warnings when used in the SAS datastep</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/625815#M184512</link>
      <description>As a follow up: Apparently this is a bug in Enterprise-Miner triggerd by the "ensemble model" node. If your target is numeric you can get multiple length statements in the optimized code.</description>
      <pubDate>Wed, 19 Feb 2020 10:34:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-E-Miner-optimized-code-causes-warnings-when-used-in-the-SAS/m-p/625815#M184512</guid>
      <dc:creator>NickVe</dc:creator>
      <dc:date>2020-02-19T10:34:46Z</dc:date>
    </item>
  </channel>
</rss>

