<?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: How to convert a SAS numeric date value to SAS date format in PROC SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444823#M283026</link>
    <description>&lt;P&gt;Perfect. Thank you all!&lt;/P&gt;</description>
    <pubDate>Mon, 12 Mar 2018 16:18:00 GMT</pubDate>
    <dc:creator>lmtamina</dc:creator>
    <dc:date>2018-03-12T16:18:00Z</dc:date>
    <item>
      <title>How to convert a SAS numeric date value to SAS date format in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444808#M283021</link>
      <description>&lt;P&gt;How do I save a SAS numeric date value into SAS date format in PROC SQL. Currently, I have &amp;nbsp;a DATA step to convert the variable to SAS date format using FORMAT mydate MMDDYY10.&amp;nbsp;&amp;nbsp; Can I directly convert the SAS numeric value to date format(mm/dd/yyyy)&amp;nbsp; in PROC SQL ? Appreciate any assistance. Thank you&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 15:50:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444808#M283021</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-03-12T15:50:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a SAS numeric date value to SAS date format in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444809#M283022</link>
      <description>&lt;P&gt;Sure, you can use SAS functions and formats in SQL so long as your not using pass-through, e.g:&lt;/P&gt;
&lt;PRE&gt;proc sql;
  create table want as
  select date_num format=mmddyy10.
  from  have;
quit;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Mar 2018 15:53:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444809#M283022</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-12T15:53:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a SAS numeric date value to SAS date format in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444815#M283023</link>
      <description>&lt;P&gt;I am creating a new variable for the end of the month of my service date&amp;nbsp; , can I use the FORMAT function below? Sorry, I am a SAS newbie.&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;create table want as&lt;BR /&gt;&amp;nbsp;&amp;nbsp; select&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;serv_from_date,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; intnx('month',serv_from_date, 0,'e') as EOM_DOS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; from&amp;nbsp; have;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 16:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444815#M283023</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-03-12T16:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a SAS numeric date value to SAS date format in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444817#M283024</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just use &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/45151"&gt;@RW9&lt;/a&gt;&amp;nbsp;code within new variable as&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql;

 create table want as
   select

    serv_from_date,

    intnx('month',serv_from_date, 0,'e') as EOM_DOS format =mmddyy10.

   
  from  have;
quit;

 
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 12 Mar 2018 16:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444817#M283024</guid>
      <dc:creator>kiranv_</dc:creator>
      <dc:date>2018-03-12T16:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a SAS numeric date value to SAS date format in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444818#M283025</link>
      <description>&lt;P&gt;Yep.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; intnx('month',serv_from_date, 0,'e') as EOM_DOS format=mmddyy10.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 16:13:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444818#M283025</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-03-12T16:13:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert a SAS numeric date value to SAS date format in PROC SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444823#M283026</link>
      <description>&lt;P&gt;Perfect. Thank you all!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Mar 2018 16:18:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-convert-a-SAS-numeric-date-value-to-SAS-date-format-in/m-p/444823#M283026</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-03-12T16:18:00Z</dc:date>
    </item>
  </channel>
</rss>

