<?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 for date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-for-date/m-p/320124#M70457</link>
    <description>&lt;P&gt;Try this one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
SELECT * , DATEPART(SAMPLE_DT) AS  SAMPLE_DT1 FORMAT=date9.
FROM sample;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 20 Dec 2016 08:34:25 GMT</pubDate>
    <dc:creator>Kalind_Patel</dc:creator>
    <dc:date>2016-12-20T08:34:25Z</dc:date>
    <item>
      <title>proc sql for date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-for-date/m-p/320118#M70454</link>
      <description>&lt;P&gt;I have attached a sample dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can get the date format in date9. in data step.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA SAMPLE1;&lt;BR /&gt;FORMAT SAMPLE_DT1 DATE9.;&lt;BR /&gt;SET SAMPLE;&lt;BR /&gt;SAMPLE_DT1 = DATEPART(SAMPLE_DT);&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May i know how to get similar answer in PROC SQL? I used datepart in SQL but could not get it.&amp;nbsp; Any idea? Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2016 07:50:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-for-date/m-p/320118#M70454</guid>
      <dc:creator>scb</dc:creator>
      <dc:date>2016-12-20T07:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: proc sql for date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/proc-sql-for-date/m-p/320124#M70457</link>
      <description>&lt;P&gt;Try this one:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
SELECT * , DATEPART(SAMPLE_DT) AS  SAMPLE_DT1 FORMAT=date9.
FROM sample;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 20 Dec 2016 08:34:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/proc-sql-for-date/m-p/320124#M70457</guid>
      <dc:creator>Kalind_Patel</dc:creator>
      <dc:date>2016-12-20T08:34:25Z</dc:date>
    </item>
  </channel>
</rss>

