<?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 store a SAS numeric date field to a new dataset with a date type in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-SAS-numeric-date-field-to-a-new-dataset-with-a/m-p/437198#M282226</link>
    <description>&lt;P&gt;It worked! Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Feb 2018 16:27:06 GMT</pubDate>
    <dc:creator>lmtamina</dc:creator>
    <dc:date>2018-02-14T16:27:06Z</dc:date>
    <item>
      <title>How to store a SAS numeric date field to a new dataset with a date type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-SAS-numeric-date-field-to-a-new-dataset-with-a/m-p/437188#M282224</link>
      <description>&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;Good Morning,&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;I am creating a new variable that will store the end of the month data of my "date of service " field. I am using the formula below:&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;eom_var= intnx('month',serv_from_date,0,'e');&lt;/P&gt;&lt;P align="left"&gt;eom_date = put(eom_var, mmddyy10.);&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;The variable created in the new dataset has a character type. How do I convert this new variable to date field type so I can compare with another dataset whose date variables are all date type.&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P align="left"&gt;I am beginner in SA and would greatly appreciate your assistance. Thank you in advance.&lt;/P&gt;&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 16:17:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-SAS-numeric-date-field-to-a-new-dataset-with-a/m-p/437188#M282224</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-02-14T16:17:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to store a SAS numeric date field to a new dataset with a date type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-SAS-numeric-date-field-to-a-new-dataset-with-a/m-p/437190#M282225</link>
      <description>&lt;P align="left"&gt;eom_var= intnx('month',serv_from_date,0,'e');&lt;/P&gt;
&lt;P align="left"&gt;eom_date = put(eom_var, mmddyy10.);&amp;nbsp; &amp;lt;- PUT converts the variable to a character. Remove this line.&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P align="left"&gt;Instead, add a format to your date so you can see it properly.&lt;/P&gt;
&lt;P align="left"&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;eom_date = intnx('month', serv_from_date, 0, 'e');
format eom_date yymmdd10.;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 14 Feb 2018 16:19:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-SAS-numeric-date-field-to-a-new-dataset-with-a/m-p/437190#M282225</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-02-14T16:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to store a SAS numeric date field to a new dataset with a date type</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-SAS-numeric-date-field-to-a-new-dataset-with-a/m-p/437198#M282226</link>
      <description>&lt;P&gt;It worked! Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Feb 2018 16:27:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-store-a-SAS-numeric-date-field-to-a-new-dataset-with-a/m-p/437198#M282226</guid>
      <dc:creator>lmtamina</dc:creator>
      <dc:date>2018-02-14T16:27:06Z</dc:date>
    </item>
  </channel>
</rss>

