<?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: Number Format to Date Format in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370283#M2829</link>
    <description>Hi:&lt;BR /&gt;  This post is remarkably similar (uses the same number as this posting &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Importing-sas7bdat-file/m-p/370282#M88434" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Importing-sas7bdat-file/m-p/370282#M88434&lt;/A&gt;) 201403 as an example of a number that is a date variable.&lt;BR /&gt;&lt;BR /&gt;  Homework?? Another possible answer was posted in the other forum. Also posted with a longer explanation of how date variables work.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
    <pubDate>Sat, 24 Jun 2017 15:41:54 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-06-24T15:41:54Z</dc:date>
    <item>
      <title>Number Format to Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370234#M2826</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I transofm the number 201403 into the date 03/2014 on SAS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 07:58:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370234#M2826</guid>
      <dc:creator>Alessandra_005</dc:creator>
      <dc:date>2017-06-24T07:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Number Format to Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370240#M2827</link>
      <description>&lt;P&gt;There isn't a SAS format for what you want but you can create your own (untested):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  picture MyDateFmt low-high='%0m/%y' (datatype=date);
run;

data test;
  datenum = 201403;
  MyDate = input(put(datenum * 100 + 1, 8.), yymmdd8.);
  format MyDate MyDateFmt.;
  put _all_;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Jun 2017 09:16:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370240#M2827</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-06-24T09:16:36Z</dc:date>
    </item>
    <item>
      <title>Re: Number Format to Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370249#M2828</link>
      <description>&lt;P&gt;data _null_;&lt;BR /&gt; date=201403;&lt;BR /&gt; _date=input(put(date,6.),yymmn6.);&lt;BR /&gt; format _date mmyys7.;&lt;BR /&gt; put _all_;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Sat, 24 Jun 2017 10:51:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370249#M2828</guid>
      <dc:creator>slchen</dc:creator>
      <dc:date>2017-06-24T10:51:11Z</dc:date>
    </item>
    <item>
      <title>Re: Number Format to Date Format</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370283#M2829</link>
      <description>Hi:&lt;BR /&gt;  This post is remarkably similar (uses the same number as this posting &lt;A href="https://communities.sas.com/t5/Base-SAS-Programming/Importing-sas7bdat-file/m-p/370282#M88434" target="_blank"&gt;https://communities.sas.com/t5/Base-SAS-Programming/Importing-sas7bdat-file/m-p/370282#M88434&lt;/A&gt;) 201403 as an example of a number that is a date variable.&lt;BR /&gt;&lt;BR /&gt;  Homework?? Another possible answer was posted in the other forum. Also posted with a longer explanation of how date variables work.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Sat, 24 Jun 2017 15:41:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Number-Format-to-Date-Format/m-p/370283#M2829</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-06-24T15:41:54Z</dc:date>
    </item>
  </channel>
</rss>

