<?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: Proc ds2 macro in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756574#M238907</link>
    <description>&lt;P&gt;&lt;EM&gt;&amp;gt; proc sql is being replaced by fedsql.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No at all. Different tools for different purposes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Likewise DS2 does not replace the data step. DS2 is better some some tasks (heavy multithreading&amp;nbsp;on distributed platforms) and much slower on the wrong hardware.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jul 2021 06:39:43 GMT</pubDate>
    <dc:creator>ChrisNZ</dc:creator>
    <dc:date>2021-07-26T06:39:43Z</dc:date>
    <item>
      <title>Proc ds2 macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756463#M238835</link>
      <description>&lt;P&gt;Good day&lt;/P&gt;&lt;P&gt;I am new to sas ds2. I kindly request an assistance.&lt;/P&gt;&lt;P&gt;I have been trying to create a macro variable using 2 methods.&lt;/P&gt;&lt;P&gt;using select into: and call symput but both does not work&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc ds2;&lt;BR /&gt;data _null_;&lt;BR /&gt;method run();&lt;BR /&gt;SET {select interest_rate into :rate from elookup.interest_rate where&lt;BR /&gt;information_date in (select max(information_date) from&lt;BR /&gt;elookup.interest_rate) where infomation_date=max(infomation_date)};&lt;BR /&gt;end;&lt;BR /&gt;enddata;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am getting this error below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR: Compilation error.&lt;BR /&gt;ERROR: Syntax error at or near ":"&lt;BR /&gt;ERROR: Line 79: Unable to prepare SQL query (rc=0x80fff802U).&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 10:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756463#M238835</guid>
      <dc:creator>langalife</dc:creator>
      <dc:date>2021-07-25T10:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Proc ds2 macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756504#M238860</link>
      <description>&lt;P&gt;You cannot have an SQL SELECT statement that both returns its results as a dataset and also generates macro variables.&lt;/P&gt;
&lt;P&gt;Since you are using the SELECT statement to return data to your DS2 data step remove the INTO clause from the SQL.&lt;/P&gt;
&lt;P&gt;Or if you just want to set macro variables then use PROC SQL instead of PROC DS2 to run the SELECT statement.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Jul 2021 15:04:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756504#M238860</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-07-25T15:04:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc ds2 macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756567#M238900</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried Fedsql I didn't come right.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 05:56:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756567#M238900</guid>
      <dc:creator>langalife</dc:creator>
      <dc:date>2021-07-26T05:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Proc ds2 macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756568#M238901</link>
      <description>&lt;P&gt;Why won't you use proc sql?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 06:07:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756568#M238901</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-26T06:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc ds2 macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756569#M238902</link>
      <description>&lt;P&gt;hi there is a thin line between sas and sas ds2, which in my mind proc sql is being replaced by fedsql.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 06:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756569#M238902</guid>
      <dc:creator>langalife</dc:creator>
      <dc:date>2021-07-26T06:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc ds2 macro</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756574#M238907</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt; proc sql is being replaced by fedsql.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No at all. Different tools for different purposes.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Likewise DS2 does not replace the data step. DS2 is better some some tasks (heavy multithreading&amp;nbsp;on distributed platforms) and much slower on the wrong hardware.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 06:39:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-ds2-macro/m-p/756574#M238907</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-07-26T06:39:43Z</dc:date>
    </item>
  </channel>
</rss>

