<?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 output of a fedsql creates a int32 data type.  proc means got an error because int32 in viya 3.5 in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724226#M832</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with Sas Viya 3.5.&lt;/P&gt;&lt;P&gt;i created this fedsql .&amp;nbsp; the calculate variables&amp;nbsp;NO_TARGET1,&amp;nbsp;NO_TARGE0 and&amp;nbsp; NO_CONNECTIONS become a datatype int32 and int64.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc fedsql sessref=RAN_Insight;&lt;BR /&gt;drop table xx.connt_s1 force;&lt;BR /&gt;create table xx.connt_s1 as&lt;BR /&gt;SELECT x.RI_DATE&lt;BR /&gt;, x.dd&lt;BR /&gt;, x.dd2&lt;BR /&gt;, sum(case when target=1 then 1 else 0 end) as no_target1&lt;BR /&gt;, sum(case when target=0 then 1 else 0 end) as no_target0&lt;BR /&gt;, count(*) as no_connections&lt;BR /&gt;FROM xx.LAG_4G_weak x&lt;BR /&gt;inner join xx.connt_s y on (x.dd= y.dd)&lt;BR /&gt;Group by x.RI_DATE, x.dd, x.dd2;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I execute a proc means on the result of this fedsql, I got an error that 'ERROR: The analytic variable's data type is not supported.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I force in the fedsql that the 'int32' variables become double?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 06 Mar 2021 20:32:16 GMT</pubDate>
    <dc:creator>Hansdewit</dc:creator>
    <dc:date>2021-03-06T20:32:16Z</dc:date>
    <item>
      <title>output of a fedsql creates a int32 data type.  proc means got an error because int32 in viya 3.5</title>
      <link>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724226#M832</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am working with Sas Viya 3.5.&lt;/P&gt;&lt;P&gt;i created this fedsql .&amp;nbsp; the calculate variables&amp;nbsp;NO_TARGET1,&amp;nbsp;NO_TARGE0 and&amp;nbsp; NO_CONNECTIONS become a datatype int32 and int64.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc fedsql sessref=RAN_Insight;&lt;BR /&gt;drop table xx.connt_s1 force;&lt;BR /&gt;create table xx.connt_s1 as&lt;BR /&gt;SELECT x.RI_DATE&lt;BR /&gt;, x.dd&lt;BR /&gt;, x.dd2&lt;BR /&gt;, sum(case when target=1 then 1 else 0 end) as no_target1&lt;BR /&gt;, sum(case when target=0 then 1 else 0 end) as no_target0&lt;BR /&gt;, count(*) as no_connections&lt;BR /&gt;FROM xx.LAG_4G_weak x&lt;BR /&gt;inner join xx.connt_s y on (x.dd= y.dd)&lt;BR /&gt;Group by x.RI_DATE, x.dd, x.dd2;&lt;BR /&gt;QUIT;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when I execute a proc means on the result of this fedsql, I got an error that 'ERROR: The analytic variable's data type is not supported.'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I force in the fedsql that the 'int32' variables become double?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Mar 2021 20:32:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724226#M832</guid>
      <dc:creator>Hansdewit</dc:creator>
      <dc:date>2021-03-06T20:32:16Z</dc:date>
    </item>
    <item>
      <title>Re: output of a fedsql creates a int32 data type.  proc means got an error because int32 in viya 3.5</title>
      <link>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724412#M833</link>
      <description>&lt;P&gt;You can use the &lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=fedsqlref&amp;amp;docsetTarget=n1fxzvj0otejpin15l3litfv4q62.htm&amp;amp;locale=en" target="_blank" rel="noopener"&gt;CAST&lt;/A&gt; function to convert data types, see example below:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc fedsql sessref=sugus;
drop table casuser.cars_aggr force;
create table casuser.cars_aggr as
  select
    type
    , sum(case when origin = 'Europe' then 1 else 0 end)::double as eur_cars
    , cast(sum(case when origin = 'Europe' then 1 else 0 end) as  double) as eur_cars2
  from
    casuser.cars
  group by
    type
  ;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 08 Mar 2021 07:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724412#M833</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-03-08T07:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: output of a fedsql creates a int32 data type.  proc means got an error because int32 in viya 3.5</title>
      <link>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724428#M834</link>
      <description>&lt;P&gt;that solve the problem. But isn't it strange that proc means cannot handle int32 data type. i cannot in the documentation that the data type should be double.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 08:43:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724428#M834</guid>
      <dc:creator>Hansdewit</dc:creator>
      <dc:date>2021-03-08T08:43:47Z</dc:date>
    </item>
    <item>
      <title>Re: output of a fedsql creates a int32 data type.  proc means got an error because int32 in viya 3.5</title>
      <link>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724432#M835</link>
      <description>&lt;P&gt;i see now the procedures cannot handle int32 and int64.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=pgmdiff&amp;amp;docsetTarget=n0b6wc0bp6tt31n1l98k9g2l2l9b.htm&amp;amp;locale=en"&gt;https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.3&amp;amp;docsetId=pgmdiff&amp;amp;docsetTarget=n0b6wc0bp6tt31n1l98k9g2l2l9b.htm&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 08:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724432#M835</guid>
      <dc:creator>Hansdewit</dc:creator>
      <dc:date>2021-03-08T08:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: output of a fedsql creates a int32 data type.  proc means got an error because int32 in viya 3.5</title>
      <link>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724436#M836</link>
      <description>Just a note your are looking at the SAS Viya 3.3 doc, the 3.5 doc is here:&lt;BR /&gt;&lt;A href="https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=pgmdiff&amp;amp;docsetTarget=n0b6wc0bp6tt31n1l98k9g2l2l9b.htm&amp;amp;locale=en" target="_blank"&gt;https://go.documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=pgmdiff&amp;amp;docsetTarget=n0b6wc0bp6tt31n1l98k9g2l2l9b.htm&amp;amp;locale=en&lt;/A&gt;</description>
      <pubDate>Mon, 08 Mar 2021 09:11:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/output-of-a-fedsql-creates-a-int32-data-type-proc-means-got-an/m-p/724436#M836</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2021-03-08T09:11:44Z</dc:date>
    </item>
  </channel>
</rss>

