<?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 how to convert number to ddmmd10. format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610690#M177880</link>
    <description>&lt;P&gt;data ex ;&lt;BR /&gt;num=10122019 ;&lt;BR /&gt;num1=num ;&lt;BR /&gt;format num1 ddmmyyd10. ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;num1 variable should be ddmmyyd10 format but the above program is not working .&lt;/P&gt;
&lt;P&gt;For 10122019(day month year) is there any format&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 10 Dec 2019 12:22:40 GMT</pubDate>
    <dc:creator>thanikondharish</dc:creator>
    <dc:date>2019-12-10T12:22:40Z</dc:date>
    <item>
      <title>how to convert number to ddmmd10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610690#M177880</link>
      <description>&lt;P&gt;data ex ;&lt;BR /&gt;num=10122019 ;&lt;BR /&gt;num1=num ;&lt;BR /&gt;format num1 ddmmyyd10. ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;num1 variable should be ddmmyyd10 format but the above program is not working .&lt;/P&gt;
&lt;P&gt;For 10122019(day month year) is there any format&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 12:22:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610690#M177880</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-12-10T12:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to ddmmd10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610691#M177881</link>
      <description>&lt;P&gt;Like this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
    num=10122019;
    dt=input(put(num, 8.), ddmmyy8.);
    format dt ddmmyy10.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 10 Dec 2019 12:25:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610691#M177881</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-12-10T12:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to ddmmd10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610693#M177883</link>
      <description>I know this one is there any direct format like date9 ddmmyyd10</description>
      <pubDate>Tue, 10 Dec 2019 12:31:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610693#M177883</guid>
      <dc:creator>thanikondharish</dc:creator>
      <dc:date>2019-12-10T12:31:05Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to ddmmd10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610694#M177884</link>
      <description>&lt;P&gt;You need to change the value to a SAS date value to make a date format work, period.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 12:32:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610694#M177884</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-12-10T12:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: how to convert number to ddmmd10. format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610700#M177889</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;data ex ;&lt;BR /&gt;num=10122019 ;&lt;BR /&gt;num1=num ;&lt;BR /&gt;format num1 ddmmyyd10. ;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Your value of num=10122019 looks like a date to you, but SAS does not consider this a date. &lt;STRONG&gt;It does not matter that it looks like a date to you.&lt;/STRONG&gt; This is the crucial point. SAS thinks that dates are integers representing the number of days since January 1, 1960, so you have to convert the value of NUM to an actual SAS date (the number of days since 1/1/1960) before any SAS date formats will work. &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt; (and possibly others) have shown you how to do this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/209685"&gt;@thanikondharish&lt;/a&gt;, could you please go back and mark the answer by &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/31304"&gt;@PeterClemmensen&lt;/a&gt; as correct? (And similarly in your other threads?) Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2019 13:40:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-convert-number-to-ddmmd10-format/m-p/610700#M177889</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-12-10T13:40:33Z</dc:date>
    </item>
  </channel>
</rss>

