<?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 PROC FEDSQL macro facility using 'into' doesnt works same as proc sql in Developers</title>
    <link>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/533972#M9</link>
    <description>&lt;P&gt;proc fedsql does not support macro 'into' facilty unlike the proc sql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FEDSQL sessref=mySession ;&lt;BR /&gt;SELECT MAX(CONTACT_KEY)+1&amp;nbsp; INTO :V_CONTACT_KEY FROM caslib.CI_CUST_CONTACT_HISTORY;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC sql ;&lt;BR /&gt;SELECT MAX(CONTACT_KEY)+1&amp;nbsp; INTO :V_CONTACT_KEY FROM oralib.CI_CUST_CONTACT_HISTORY;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how to max value from caslib dataset and store it in macro ? I am aware that it can be done with&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let ( ofcourse ) and CALL SYMPUT, but with proc fedsql it isnt working.&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 15:45:21 GMT</pubDate>
    <dc:creator>Rahul_B</dc:creator>
    <dc:date>2019-02-08T15:45:21Z</dc:date>
    <item>
      <title>PROC FEDSQL macro facility using 'into' doesnt works same as proc sql</title>
      <link>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/533972#M9</link>
      <description>&lt;P&gt;proc fedsql does not support macro 'into' facilty unlike the proc sql.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC FEDSQL sessref=mySession ;&lt;BR /&gt;SELECT MAX(CONTACT_KEY)+1&amp;nbsp; INTO :V_CONTACT_KEY FROM caslib.CI_CUST_CONTACT_HISTORY;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PROC sql ;&lt;BR /&gt;SELECT MAX(CONTACT_KEY)+1&amp;nbsp; INTO :V_CONTACT_KEY FROM oralib.CI_CUST_CONTACT_HISTORY;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;does anyone know how to max value from caslib dataset and store it in macro ? I am aware that it can be done with&amp;nbsp;&lt;/P&gt;&lt;P&gt;%let ( ofcourse ) and CALL SYMPUT, but with proc fedsql it isnt working.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 15:45:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/533972#M9</guid>
      <dc:creator>Rahul_B</dc:creator>
      <dc:date>2019-02-08T15:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FEDSQL macro facility using 'into' doesnt works same as proc sql</title>
      <link>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/534278#M10</link>
      <description>&lt;P&gt;There are no macros in CAS but couldn't you just add a Create View to your current syntax in FedSql and then use this view in a SAS data NULL step writing your one record into a macro using call symputx() - haven't done something like this yet but I believe such an approach should pull your data from CAS to the SPRE environment where you've still got "traditional" SAS.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 10:36:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/534278#M10</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-10T10:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FEDSQL macro facility using 'into' doesnt works same as proc sql</title>
      <link>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/534759#M11</link>
      <description>&lt;P&gt;Hi Patrick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You cannot create a view using fedsql in CAS,i was unable to pull data from CAS to SPRE evnrionment.alternatively you can create a CAS/Inmemory Table instead and load the max value in that table, but my need is to get max key from 250 Million records ( which is CAS table) and this took 48 mins.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So what i did was i store the max key value in variable in the CAS table , and used Call Symput() to call it in the macro, where i wanted.&lt;/P&gt;&lt;P&gt;I have never used fedsql to perform a max operation in a CAS,but&amp;nbsp; suprising while i did run fedsql it was scanning 250 Million records it took 48 mins, that is not something i would expect with&amp;nbsp; inmemory tables, they are suppose to fast in processing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 09:44:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/534759#M11</guid>
      <dc:creator>Rahul_B</dc:creator>
      <dc:date>2019-02-12T09:44:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC FEDSQL macro facility using 'into' doesnt works same as proc sql</title>
      <link>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/534776#M12</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/233040"&gt;@Rahul_B&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your feedback. Yep, I'm also only starting to get into Viya and FedSQL and there is definitely much to learn - workarounds included...&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2019 11:37:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/PROC-FEDSQL-macro-facility-using-into-doesnt-works-same-as-proc/m-p/534776#M12</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-12T11:37:55Z</dc:date>
    </item>
  </channel>
</rss>

