<?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 Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149580#M2517</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good evening, &lt;/P&gt;&lt;P&gt;I'm receiving the following error and wanted to know how I would handle in SAS. &lt;/P&gt;&lt;P&gt;For SQL Server I would have to use &lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; COUNT_BIG&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;(*) is there an equivalent?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(*) into :sourcecnt from LipSDD00.Fundamental;&lt;/P&gt;&lt;P&gt;CLI open cursor error: [SAS/ACCESS to SQL Server][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Arithmetic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overflow error converting expression to data type int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Dec 2014 04:36:47 GMT</pubDate>
    <dc:creator>jdmarshg</dc:creator>
    <dc:date>2014-12-14T04:36:47Z</dc:date>
    <item>
      <title>Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149580#M2517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good evening, &lt;/P&gt;&lt;P&gt;I'm receiving the following error and wanted to know how I would handle in SAS. &lt;/P&gt;&lt;P&gt;For SQL Server I would have to use &lt;CODE style="font-family: Consolas, Menlo, Monaco, 'Lucida Console', 'Liberation Mono', 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Courier New', monospace, serif; background-position: initial;"&gt;&lt;SPAN class="kwd" style="color: #00008b; background: transparent;"&gt;SELECT&lt;/SPAN&gt;&lt;SPAN class="pln" style="background: transparent;"&gt; COUNT_BIG&lt;/SPAN&gt;&lt;SPAN class="pun" style="background: transparent;"&gt;(*) is there an equivalent?&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select count(*) into :sourcecnt from LipSDD00.Fundamental;&lt;/P&gt;&lt;P&gt;CLI open cursor error: [SAS/ACCESS to SQL Server][ODBC SQL Server Wire Protocol driver][Microsoft SQL Server]Arithmetic&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; overflow error converting expression to data type int.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Dec 2014 04:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149580#M2517</guid>
      <dc:creator>jdmarshg</dc:creator>
      <dc:date>2014-12-14T04:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149581#M2518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could use a passthrough...&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;connect using LipSDD00 as cLIP;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; recs&lt;/P&gt;&lt;P&gt;into&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :sourcecnt&lt;/P&gt;&lt;P&gt;from connection to cLIP (&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select count_big(*) from Fundamental&lt;/P&gt;&lt;P&gt;);&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 03:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149581#M2518</guid>
      <dc:creator>DBailey</dc:creator>
      <dc:date>2014-12-15T03:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149582#M2519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Assuming you have a libname for the SQL Server table, you could use this brute force approach as a last-ditch solution:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;set sqllib.fundamental end=finish;&lt;/P&gt;&lt;P&gt;if finish then call symput('sourcecnt',put(_n_,best20.));&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 07:40:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149582#M2519</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-12-15T07:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149583#M2520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might need to use CAST() in the pass thru expression, otherwise chances are that you still encounter the same limitation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 11:47:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149583#M2520</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-12-15T11:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149584#M2521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for all the options for a solution. &lt;/P&gt;&lt;P&gt;It seems from this other thread I found that SAS DIS that the %macro etls_recordCheck; which is automatically generating these counts. &lt;/P&gt;&lt;P&gt;Here is the other thread.&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="209047" __jive_macro_name="message" class="jive_macro jive_macro_message" href="https://communities.sas.com/" modifiedtitle="true" title="Re: D.I. Studio - etls_recordCheck macro issues"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am continuing to research this issue and figure out a work around.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 15:34:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149584#M2521</guid>
      <dc:creator>jdmarshg</dc:creator>
      <dc:date>2014-12-15T15:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149585#M2522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;I would like SAS just to ignore these errors and continue on if I could for a quick work around until another solution is found. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;Any suggestions ?? How do I go about the SAS System to continue processing?&lt;/SPAN&gt;&lt;SPAN style="font-weight: bold; color: #545454; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; color: #545454; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;The SAS System stopped processing this step because of errors&lt;/SPAN&gt;&lt;SPAN style="color: #545454; font-family: arial, sans-serif; font-size: small; background-color: #ffffff;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 16:28:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149585#M2522</guid>
      <dc:creator>jdmarshg</dc:creator>
      <dc:date>2014-12-15T16:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149586#M2523</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If this is DI Studio generated code open a track to SAS tech support and demand a fix!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Dec 2014 23:42:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149586#M2523</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2014-12-15T23:42:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arithmetic overflow error converting expression to data type int. (Tracking Counts) Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149587#M2524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi jdmarshg,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See my reply to the other thread you mentioned above for more details on this macro:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" data-containerid="59" data-containertype="14" data-objectid="209047" data-objecttype="2" href="https://communities.sas.com/message/209047#209047"&gt;Re: D.I. Studio - etls_recordCheck macro issues&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can disable this macro as I note in this thread or change the code it generates to suit your needs. SELECT COUNT_BIG(*) seems like Transact-SQL specific to SQL Server 2008 and higher, and would only be needed for tables with more than 2,147,483,647 rows - not unheard of, but certainly uncommon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike F.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Dec 2014 19:02:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/Arithmetic-overflow-error-converting-expression-to-data-type-int/m-p/149587#M2524</guid>
      <dc:creator>MikeFrost</dc:creator>
      <dc:date>2014-12-17T19:02:24Z</dc:date>
    </item>
  </channel>
</rss>

