<?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: Expression using multiplication requires numeric type error in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701615#M19663</link>
    <description>I took the same code which was being used in DI to EG.&lt;BR /&gt;</description>
    <pubDate>Wed, 25 Nov 2020 17:33:57 GMT</pubDate>
    <dc:creator>David_Billa</dc:creator>
    <dc:date>2020-11-25T17:33:57Z</dc:date>
    <item>
      <title>Expression using multiplication requires numeric type error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701598#M19660</link>
      <description>&lt;P&gt;I want to multiply two numeric variables called value and factor to derive the variable 'new_value' in one (join) transformation . But when I multiply I got the error as mentioned in subject.&lt;/P&gt;
&lt;P&gt;When I checked I see that both the variables are defined as numeric from source. But I'm not sure&amp;nbsp; why I get this error.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expression which I used is, new_value=value*factor.&lt;/P&gt;
&lt;P&gt;When I run the automatic code from the transformation in SAS EG, I see that the variable 'factor' is character but in DI job I see that it's a numeric data type. Any help here identify the cause for this error?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why the variable type differs between EG and DI Studio?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 17:14:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701598#M19660</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-11-25T17:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Expression using multiplication requires numeric type error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701603#M19661</link>
      <description>&lt;P&gt;Show us the PROC CONTENTS on these two variables in yuour data set.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Show us the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;full&lt;/EM&gt; &lt;/STRONG&gt;complete unedited&amp;nbsp; LOG of the data step code that you are using.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 17:36:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701603#M19661</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-25T17:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Expression using multiplication requires numeric type error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701608#M19662</link>
      <description>&lt;P&gt;Most likely because the EG steps/code is using a different dataset than the DI steps/code is using.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 17:22:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701608#M19662</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-11-25T17:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression using multiplication requires numeric type error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701615#M19663</link>
      <description>I took the same code which was being used in DI to EG.&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Nov 2020 17:33:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701615#M19663</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-11-25T17:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression using multiplication requires numeric type error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701625#M19664</link>
      <description>&lt;P&gt;Does that code include an import step? If so, and the import is PROC IMPORT or an automated import task that doesn't specify data types explicitly is why you'd get different answers. When you use a guessing procedure the risk is that the guesses could be different in different applications such as EG versus DI versus R/Python.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Nov 2020 18:25:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701625#M19664</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-25T18:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Expression using multiplication requires numeric type error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701767#M19665</link>
      <description>No import in my code&lt;BR /&gt;</description>
      <pubDate>Thu, 26 Nov 2020 07:39:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701767#M19665</guid>
      <dc:creator>David_Billa</dc:creator>
      <dc:date>2020-11-26T07:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Expression using multiplication requires numeric type error</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701876#M19666</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/292396"&gt;@David_Billa&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In DI Studio you see the metadata entries for column definitions. It is a "normative" description, and in the best of all worlds the physical data set is created with the same attributes.&amp;nbsp;But this is not always the case. There might be different attributes or even different variables present.&amp;nbsp;It depends on the code that created the table,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try to update metadata on the table in DI Studio (right click on the table and select "update metadata") and see what happens.&amp;nbsp;If the column changes to character, you have found the problem and need to correct the error in the job that created the table.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If the variable is still numeric after update you are accessing two different tables in DI Studio and EG, like pointing to a development library in DI Studio and a production library in EG or vice versa.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 19:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Expression-using-multiplication-requires-numeric-type-error/m-p/701876#M19666</guid>
      <dc:creator>ErikLund_Jensen</dc:creator>
      <dc:date>2020-11-26T19:26:48Z</dc:date>
    </item>
  </channel>
</rss>

