<?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: Decision Tree Error: Temporary Variable for Formatted Value in SAS Data Science</title>
    <link>https://communities.sas.com/t5/SAS-Data-Science/Decision-Tree-Error-Temporary-Variable-for-Formatted-Value/m-p/273334#M4049</link>
    <description>&lt;P&gt;This should never happen.&amp;nbsp; A SAS procedure (ARBOR) is hopelessly confused about the format of a categorical variable.&amp;nbsp; The procedure generated scoring code with the lines,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;****** TEMPORARY VARIABLES FOR FORMATTED VALUES ******;&lt;BR /&gt;LENGTH _ARBFMT_12 $ 12; DROP _ARBFMT_12;&lt;BR /&gt;_ARBFMT_12 = ' '; /* Initialize to avoid warning. */&lt;BR /&gt;LENGTH _ARBFMT_0 $ 0; DROP _ARBFMT_0;&lt;BR /&gt;_ARBFMT_0 = ' '; /* Initialize to avoid warning. */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on.&amp;nbsp; Elsewhere&amp;nbsp;should be&amp;nbsp;lines of the form,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_ARBFMT_0 = PUT( variable, format);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Such lines reveal the variable and format that tripped the SAS procedure. If you could find those lines you might be able to fix them by 1. correcting format if it is wrong, and 2. putting the length of the format in the LENGTH ARBFMT_0 statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you would give SAS Technical Support the Tree4_emtree&amp;nbsp; data set and let them know I want to look at it, then I will figure out the bug and whether it can be addressed.&amp;nbsp;&amp;nbsp; (&lt;A href="https://support.sas.com/techsup/contact/" target="_blank"&gt;https://support.sas.com/techsup/contact/&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appologize for the inconvenience.&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;BR /&gt;Padraic&lt;/P&gt;</description>
    <pubDate>Thu, 26 May 2016 17:52:29 GMT</pubDate>
    <dc:creator>PadraicGNeville</dc:creator>
    <dc:date>2016-05-26T17:52:29Z</dc:date>
    <item>
      <title>Decision Tree Error: Temporary Variable for Formatted Value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Decision-Tree-Error-Temporary-Variable-for-Formatted-Value/m-p/273197#M4046</link>
      <description>&lt;P&gt;So I have another error with a decision tree node. I am importing a decision tree of another node so my properties are set to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use Frozen Tree= No&lt;/P&gt;&lt;P&gt;Import Tree Model= Yes&lt;/P&gt;&lt;P&gt;Tree Model Data Data=&amp;nbsp;Tree4_emtree&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now im getting an error on a temporary variable for a formatted value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;15531 +****** TEMPORARY VARIABLES FOR FORMATTED VALUES ******;&lt;BR /&gt;15532 +LENGTH _ARBFMT_12 $ 12; DROP _ARBFMT_12;&lt;BR /&gt;15533 +_ARBFMT_12 = ' '; /* Initialize to avoid warning. */&lt;BR /&gt;15534 +LENGTH _ARBFMT_0 $ 0; DROP _ARBFMT_0;&lt;BR /&gt;ERROR: The length of a character variable must be in the range of 1-32767.&lt;BR /&gt;15535 +_ARBFMT_0 = ' '; /* Initialize to avoid warning. */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I get that it's because of the length. And im assuming whatever the number is at the end of &lt;SPAN&gt;_ARBFMT_, that is the length being defined.&amp;nbsp;&lt;/SPAN&gt;What i don't get is where did&amp;nbsp;&lt;SPAN&gt;_ARBFMT_0 come from and how to change it? When i checked the flow code&amp;nbsp;for Tree 4 (the tree im importing), it doesn't have&amp;nbsp;_ARBFMT_0. It only has&amp;nbsp;_ARBFMT_12. So i don't know where to look at and where it is coming from. Help! Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Sarah&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 04:23:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Decision-Tree-Error-Temporary-Variable-for-Formatted-Value/m-p/273197#M4046</guid>
      <dc:creator>sarahj</dc:creator>
      <dc:date>2016-05-26T04:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Decision Tree Error: Temporary Variable for Formatted Value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Decision-Tree-Error-Temporary-Variable-for-Formatted-Value/m-p/273334#M4049</link>
      <description>&lt;P&gt;This should never happen.&amp;nbsp; A SAS procedure (ARBOR) is hopelessly confused about the format of a categorical variable.&amp;nbsp; The procedure generated scoring code with the lines,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;****** TEMPORARY VARIABLES FOR FORMATTED VALUES ******;&lt;BR /&gt;LENGTH _ARBFMT_12 $ 12; DROP _ARBFMT_12;&lt;BR /&gt;_ARBFMT_12 = ' '; /* Initialize to avoid warning. */&lt;BR /&gt;LENGTH _ARBFMT_0 $ 0; DROP _ARBFMT_0;&lt;BR /&gt;_ARBFMT_0 = ' '; /* Initialize to avoid warning. */&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and so on.&amp;nbsp; Elsewhere&amp;nbsp;should be&amp;nbsp;lines of the form,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;_ARBFMT_0 = PUT( variable, format);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Such lines reveal the variable and format that tripped the SAS procedure. If you could find those lines you might be able to fix them by 1. correcting format if it is wrong, and 2. putting the length of the format in the LENGTH ARBFMT_0 statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you would give SAS Technical Support the Tree4_emtree&amp;nbsp; data set and let them know I want to look at it, then I will figure out the bug and whether it can be addressed.&amp;nbsp;&amp;nbsp; (&lt;A href="https://support.sas.com/techsup/contact/" target="_blank"&gt;https://support.sas.com/techsup/contact/&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I appologize for the inconvenience.&lt;/P&gt;
&lt;P&gt;Kind Regards,&lt;BR /&gt;Padraic&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 17:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Decision-Tree-Error-Temporary-Variable-for-Formatted-Value/m-p/273334#M4049</guid>
      <dc:creator>PadraicGNeville</dc:creator>
      <dc:date>2016-05-26T17:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: Decision Tree Error: Temporary Variable for Formatted Value</title>
      <link>https://communities.sas.com/t5/SAS-Data-Science/Decision-Tree-Error-Temporary-Variable-for-Formatted-Value/m-p/273347#M4050</link>
      <description>Hi Padraic,&lt;BR /&gt;&lt;BR /&gt;Thanks for your reply. I found something while investigating this error. Apparently, the variable associated with it seem to be not in the input data set. Which makes sense because the variable was rejected in the Variabele selection node before the decision tree.&lt;BR /&gt;&lt;BR /&gt;Take note though that we are migrating this project from a EM 6.2 to 14.1. In the project in EM 6.2, the variable was rejected in variable selection node but it still is a variable in the decision tree node following the variable selection. When the project was migrated to 14.1, on the decision tree i tried to import the tree from the results in 6.2 and that's when this error came out. Still a variable selection before the decision tree node and the variable was rejected. Now i wonder why the variable got thru in 6.2 and now it doesnt in 14.1 (which is more correct actually) and now causes error. I had to go to Manual Selector and force the variable as an Input and not rejected. Was it a bug from 6.2?&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Sarah</description>
      <pubDate>Thu, 26 May 2016 18:23:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Science/Decision-Tree-Error-Temporary-Variable-for-Formatted-Value/m-p/273347#M4050</guid>
      <dc:creator>sarahj</dc:creator>
      <dc:date>2016-05-26T18:23:28Z</dc:date>
    </item>
  </channel>
</rss>

