<?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 Date is entered as numeric with this format 20191024 I need to format it to mmddyyyy in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/798760#M314009</link>
    <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have a column of date which is all numeric, they are not characters. I need to format it as mm/dd/yyyy.&lt;/P&gt;
&lt;P&gt;I do what I can, this doesn't get resolved.&lt;/P&gt;
&lt;P&gt;the result has to be 10/24/1999&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Blue &amp;amp; Blue&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 23:04:23 GMT</pubDate>
    <dc:creator>GN0001</dc:creator>
    <dc:date>2022-02-25T23:04:23Z</dc:date>
    <item>
      <title>Date is entered as numeric with this format 20191024 I need to format it to mmddyyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/798760#M314009</link>
      <description>&lt;P&gt;Hello team,&lt;/P&gt;
&lt;P&gt;I have a column of date which is all numeric, they are not characters. I need to format it as mm/dd/yyyy.&lt;/P&gt;
&lt;P&gt;I do what I can, this doesn't get resolved.&lt;/P&gt;
&lt;P&gt;the result has to be 10/24/1999&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Blue &amp;amp; Blue&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 23:04:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/798760#M314009</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2022-02-25T23:04:23Z</dc:date>
    </item>
    <item>
      <title>Re: Date is entered as numeric with this format 20191024 I need to format it to mmddyyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/798761#M314010</link>
      <description>&lt;P&gt;If the value is numeric you just need to change the actual number involved to a date value and apply a format.&lt;/P&gt;
&lt;P&gt;One example:&lt;/P&gt;
&lt;PRE&gt;data example;
   x =  20191024;
   x = input(put(x,f8.),yymmdd8.);
   format x mmddyy10.;
run;&lt;/PRE&gt;
&lt;P&gt;Which is easier than parsing out the month, day and year with other methods.&lt;/P&gt;
&lt;P&gt;Caveat: if you have single digit month or day: 201911 (instead of 20190101) then you have more work to do.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 23:09:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/798761#M314010</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-02-25T23:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: Date is entered as numeric with this format 20191024 I need to format it to mmddyyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/799024#M314140</link>
      <description>&lt;P&gt;Hello teammate,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This response saved my life. Thank you very much for it.&lt;/P&gt;
&lt;P&gt;I need to know what&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;put(x,f8.)&lt;/PRE&gt;
&lt;P&gt;do.&lt;/P&gt;
&lt;P&gt;Thanks for the response.&lt;/P&gt;
&lt;P&gt;blue &amp;amp; blue&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 22:40:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/799024#M314140</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2022-02-27T22:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date is entered as numeric with this format 20191024 I need to format it to mmddyyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/799032#M314146</link>
      <description>&lt;P&gt;The INPUT() function converts strings into values based on the informat&amp;nbsp; being used.&lt;/P&gt;
&lt;P&gt;But your variable is numeric, not a character strings.&amp;nbsp; So the PUT() function converts values into strings, based on the format being used.&amp;nbsp; The 8. format tells SAS to format the number as an 8 digit string.&lt;/P&gt;</description>
      <pubDate>Sun, 27 Feb 2022 23:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/799032#M314146</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2022-02-27T23:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: Date is entered as numeric with this format 20191024 I need to format it to mmddyyyy</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/799054#M314161</link>
      <description>&lt;P&gt;Hello Tom,&lt;/P&gt;
&lt;P&gt;What a great response.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Blue &amp;amp; Blue&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 02:51:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Date-is-entered-as-numeric-with-this-format-20191024-I-need-to/m-p/799054#M314161</guid>
      <dc:creator>GN0001</dc:creator>
      <dc:date>2022-02-28T02:51:24Z</dc:date>
    </item>
  </channel>
</rss>

