<?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: Syntax differences between PROC FEDSQL vs PROC SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936129#M367994</link>
    <description>Glad you were able to resolve this.&lt;BR /&gt;&lt;BR /&gt;I just wanted to note that Proc fedsql is a SAS proprietary implementation of ANSI SQL 1999. Which is why the double quotes do not work. Additionally, you may notice that other SAS enhancements such as the calculated keyword that is often used in Proc sql is not supported in fedsql.</description>
    <pubDate>Thu, 18 Jul 2024 07:55:53 GMT</pubDate>
    <dc:creator>Mazi</dc:creator>
    <dc:date>2024-07-18T07:55:53Z</dc:date>
    <item>
      <title>Syntax differences between PROC FEDSQL vs PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936005#M367950</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to leverage some of the benefits of proc fedsql and cas, however I am facing some issues with the syntax in comparison, previously when i tried to filter rows using proc sql I just used a where clause, however when i do the same using proc fedsql, I get a error saying the column name exist for the filter value I am trying to apply:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;WHERE VAR = "PROD";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It will return an error saying the column "PROD" does not exist or cannot be accessed, so I just want to understand the syntax difference that is more than likely causing this.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 09:53:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936005#M367950</guid>
      <dc:creator>phopkinson</dc:creator>
      <dc:date>2024-07-17T09:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax differences between PROC FEDSQL vs PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936009#M367953</link>
      <description>&lt;P&gt;Weird ... because nothing is wrong with&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;WHERE VAR = "PROD";&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Maybe you need to show us the full program.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using SAS 9.4 or SAS Viya 3.5 or SAS Viya 4?&lt;BR /&gt;Are you using PROC FEDSQL on the CAS server (with CAS tables) or against an external database (like Oracle)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL class="lia-list-style-type-square"&gt;
&lt;LI&gt;Proc SQL or Proc FEDSQL: Which Should a Programmer Use? Q&amp;amp;A, Slides, and On-Demand Recording&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/Ask-the-Expert/Proc-SQL-or-Proc-FEDSQL-Which-Should-a-Programmer-Use-Q-amp-A/ta-p/716702" target="_blank"&gt;https://communities.sas.com/t5/Ask-the-Expert/Proc-SQL-or-Proc-FEDSQL-Which-Should-a-Programmer-Use-Q-amp-A/ta-p/716702&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;Paper 3734-2018&lt;BR /&gt;Anything You Can Do I Can Do Better: PROC FEDSQL VS PROC SQL&lt;BR /&gt;Cuyler R. Huffman (1,2), Matthew M. Lypka (1), Jessica L. Parker (1)&lt;BR /&gt;(1) Spectrum Health Office of Research, (2) Grand Valley State University&lt;BR /&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings19/3734-2019.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings19/3734-2019.pdf&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 10:58:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936009#M367953</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2024-07-17T10:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax differences between PROC FEDSQL vs PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936128#M367993</link>
      <description>&lt;P&gt;Yes, for some reason it didn't like the double quotes, when I changed it to single quotes it seemed to run ok.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 07:51:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936128#M367993</guid>
      <dc:creator>phopkinson</dc:creator>
      <dc:date>2024-07-18T07:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax differences between PROC FEDSQL vs PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936129#M367994</link>
      <description>Glad you were able to resolve this.&lt;BR /&gt;&lt;BR /&gt;I just wanted to note that Proc fedsql is a SAS proprietary implementation of ANSI SQL 1999. Which is why the double quotes do not work. Additionally, you may notice that other SAS enhancements such as the calculated keyword that is often used in Proc sql is not supported in fedsql.</description>
      <pubDate>Thu, 18 Jul 2024 07:55:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936129#M367994</guid>
      <dc:creator>Mazi</dc:creator>
      <dc:date>2024-07-18T07:55:53Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax differences between PROC FEDSQL vs PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936136#M367996</link>
      <description>&lt;P&gt;I have realised that whilst I get no error&amp;nbsp; and I have now run into a different problem - it returns no rows where the clause has actually been met.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 09:18:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936136#M367996</guid>
      <dc:creator>phopkinson</dc:creator>
      <dc:date>2024-07-18T09:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax differences between PROC FEDSQL vs PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936152#M368002</link>
      <description>&lt;P&gt;I realised the macro variable I was using as my condition for filtering wasn't resolving with either single or double quotes, so put %TSLIT around it and it worked.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 12:17:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936152#M368002</guid>
      <dc:creator>phopkinson</dc:creator>
      <dc:date>2024-07-18T12:17:25Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax differences between PROC FEDSQL vs PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936153#M368003</link>
      <description>Are you using CAS actions or the procedure?</description>
      <pubDate>Thu, 18 Jul 2024 12:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936153#M368003</guid>
      <dc:creator>Mazi</dc:creator>
      <dc:date>2024-07-18T12:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax differences between PROC FEDSQL vs PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936179#M368009</link>
      <description>&lt;P&gt;The procedure&lt;/P&gt;</description>
      <pubDate>Thu, 18 Jul 2024 13:47:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Syntax-differences-between-PROC-FEDSQL-vs-PROC-SQL/m-p/936179#M368009</guid>
      <dc:creator>phopkinson</dc:creator>
      <dc:date>2024-07-18T13:47:10Z</dc:date>
    </item>
  </channel>
</rss>

