<?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 Sql - get current hour. in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Proc-Sql-get-current-hour/m-p/50773#M2963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m using a Customer Intelligence 5.4 and i have in a Process Node, into this node i have a "proc sql" i need to filter records per hour&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;,&lt;/SPAN&gt; and this hour is in a datetime field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL I would do as follows: "convert(varchar(2), FIELD, 114)" what would be the equivalent in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 30 Mar 2012 18:13:22 GMT</pubDate>
    <dc:creator>Samuel_Rocha</dc:creator>
    <dc:date>2012-03-30T18:13:22Z</dc:date>
    <item>
      <title>Proc Sql - get current hour.</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Sql-get-current-hour/m-p/50773#M2963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m using a Customer Intelligence 5.4 and i have in a Process Node, into this node i have a "proc sql" i need to filter records per hour&lt;SPAN style="font-family: arial, sans-serif; font-size: 16px; text-align: -webkit-auto; background-color: #f5f5f5;"&gt;,&lt;/SPAN&gt; and this hour is in a datetime field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In SQL I would do as follows: "convert(varchar(2), FIELD, 114)" what would be the equivalent in SAS?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!!!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 18:13:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Sql-get-current-hour/m-p/50773#M2963</guid>
      <dc:creator>Samuel_Rocha</dc:creator>
      <dc:date>2012-03-30T18:13:22Z</dc:date>
    </item>
    <item>
      <title>Proc Sql - get current hour.</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Sql-get-current-hour/m-p/50774#M2964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Will something like the following suffice?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;/P&gt;&lt;P&gt;&amp;nbsp; thedate=datetime();&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select hour(timepart(thedate))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; from have&lt;/P&gt;&lt;P&gt;&amp;nbsp; ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Mar 2012 18:35:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Sql-get-current-hour/m-p/50774#M2964</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-03-30T18:35:20Z</dc:date>
    </item>
  </channel>
</rss>

