<?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 SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/29792#M5668</link>
    <description>Thanks Oliver... That was really helpful !</description>
    <pubDate>Wed, 09 Jul 2008 16:22:56 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2008-07-09T16:22:56Z</dc:date>
    <item>
      <title>Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/29790#M5666</link>
      <description>Hi I am a new SAS user and am having difficulty when running a query as part of the proc sql statement. The Error log reads that the following functions are NOT LOCATED.&lt;BR /&gt;
&lt;BR /&gt;
TO_CHAR, ADD_MONTH,TRUNC,LAST_DAY,DECODE,NVL&lt;BR /&gt;
&lt;BR /&gt;
I am an oracle PL/SQL Programmer and hence am trying to run that sql here. Do I have alternate function names that I should be using instead of the above?&lt;BR /&gt;
&lt;BR /&gt;
Any help will be greatly appreciated. Thanks.</description>
      <pubDate>Tue, 08 Jul 2008 22:49:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/29790#M5666</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-08T22:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/29791#M5667</link>
      <description>Hi Caesar.&lt;BR /&gt;
The SAS Sql procedure uses a mixture of SQL standard syntax and SAS functions. Those listed in your message should be replaced by almost-equivalent SAS functions (check the SAS doc about them for the syntax, use, results, and so on).&lt;BR /&gt;
&lt;BR /&gt;
TO_CHAR --&amp;gt; PUT&lt;BR /&gt;
&lt;BR /&gt;
ADD_MONTH(thisDate, nbMonths) --&amp;gt; INTNX("MONTH", thisDate, nbMonths) + DAY(thisDate)-1&lt;BR /&gt;
/* the INTNX("MONTH") function returns a date on the first day of the month */&lt;BR /&gt;
&lt;BR /&gt;
TRUNC --&amp;gt; FLOOR / INT / ROUND (depending on what you want to do)&lt;BR /&gt;
&lt;BR /&gt;
LAST_DAY --&amp;gt; INTNX("MONTH", date, 1) - 1&lt;BR /&gt;
&lt;BR /&gt;
DECODE --&amp;gt; IFC / IFN (SAS 9 functions), CASE WHEN ELSE syntax&lt;BR /&gt;
&lt;BR /&gt;
NVL(var1, var2) --&amp;gt; COALESCE(var1, var2)&lt;BR /&gt;
&lt;BR /&gt;
Regards.&lt;BR /&gt;
Olivier</description>
      <pubDate>Wed, 09 Jul 2008 08:42:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/29791#M5667</guid>
      <dc:creator>Olivier</dc:creator>
      <dc:date>2008-07-09T08:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/29792#M5668</link>
      <description>Thanks Oliver... That was really helpful !</description>
      <pubDate>Wed, 09 Jul 2008 16:22:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-SQL/m-p/29792#M5668</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-07-09T16:22:56Z</dc:date>
    </item>
  </channel>
</rss>

