<?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: I need help with Proc SQL in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191732#M48216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, with your help I figured it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2014 21:32:25 GMT</pubDate>
    <dc:creator>mkd</dc:creator>
    <dc:date>2014-10-27T21:32:25Z</dc:date>
    <item>
      <title>I need help with Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191728#M48212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I need help figuring out how to add this SQL code to SAS using proc sql.&amp;nbsp; I get the error messages that are listed below the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AND lh.CreateDate &amp;gt;= CAST(CONVERT(VARCHAR(8),GETDATE()-1,1) as DATETIME)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR: Function VARCHAR could not be located.&lt;/P&gt;&lt;P&gt;ERROR: Function GETDATE could not be located.&lt;/P&gt;&lt;P&gt;ERROR: Expression using subtraction :smileyminus: requires numeric types.&lt;/P&gt;&lt;P&gt;ERROR: Function CONVERT could not be located.&lt;/P&gt;&lt;P&gt;ERROR: Function CAST could not be located.&lt;/P&gt;&lt;P&gt;ERROR: Expression using greater than or equal (&amp;gt;=) has components that are of different data&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; types.&lt;/P&gt;&lt;P&gt;ERROR: The following columns were not found in the contributing tables: DATETIME.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 22:09:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191728#M48212</guid>
      <dc:creator>mkd</dc:creator>
      <dc:date>2014-10-20T22:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191729#M48213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If CreateDate is a SAS Date something like this:&lt;/P&gt;&lt;P&gt;AND lh.CreateDate &amp;gt;= (today() - 1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 22:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191729#M48213</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2014-10-20T22:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191730#M48214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cast is a teradata function.and If you want to use in porc sql. you can define while creating libname.&lt;/P&gt;&lt;P&gt;libname teradatalib teradata user=user_name pw=pwd cast=yes;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Oct 2014 22:39:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191730#M48214</guid>
      <dc:creator>PravinMishra</dc:creator>
      <dc:date>2014-10-20T22:39:28Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191731#M48215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the intent of the code. CAST() and GETDATE() are not functions available in SAS.&lt;/P&gt;&lt;P&gt;If you want to get today's date use the TODAY() or DATE() function.&lt;/P&gt;&lt;P&gt;If you want to get the current datetime then use the DATETIME() function.&lt;/P&gt;&lt;P&gt;Which you use will depend on what you want to do and whether the variable CreateDate contains dates or datetime values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Oct 2014 12:13:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191731#M48215</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-10-21T12:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: I need help with Proc SQL</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191732#M48216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, with your help I figured it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 21:32:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/I-need-help-with-Proc-SQL/m-p/191732#M48216</guid>
      <dc:creator>mkd</dc:creator>
      <dc:date>2014-10-27T21:32:25Z</dc:date>
    </item>
  </channel>
</rss>

