<?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 create 99/9999 as MM/YYYY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304184#M64727</link>
    <description>&lt;P&gt;You can make use of format that makes use of the nested format definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value my_mmyys (default=7)
    . = "99/9999"
    other = [mmyys7.]
  ;
run;

data have;
  do someDate = ., "01jan2016"d, "31aug2016"d;
    someDate2 = someDate;
    output;
  end;

  format
    someDate mmyys7.
    someDate2 my_mmyys.
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
    <pubDate>Wed, 12 Oct 2016 20:04:42 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2016-10-12T20:04:42Z</dc:date>
    <item>
      <title>how to create 99/9999 as MM/YYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304181#M64725</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How could we replace missing mm/yyyy as 99/9999 in sas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 19:44:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304181#M64725</guid>
      <dc:creator>Andrewpass</dc:creator>
      <dc:date>2016-10-12T19:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: how to create 99/9999 as MM/YYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304184#M64727</link>
      <description>&lt;P&gt;You can make use of format that makes use of the nested format definition.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
  value my_mmyys (default=7)
    . = "99/9999"
    other = [mmyys7.]
  ;
run;

data have;
  do someDate = ., "01jan2016"d, "31aug2016"d;
    someDate2 = someDate;
    output;
  end;

  format
    someDate mmyys7.
    someDate2 my_mmyys.
  ;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 20:04:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304184#M64727</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2016-10-12T20:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to create 99/9999 as MM/YYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304207#M64735</link>
      <description>&lt;P&gt;Since 99 is not a valid month, you can't &lt;STRONG&gt;replace&lt;/STRONG&gt; the missing date with 99/9999.&lt;/P&gt;
&lt;P&gt;You can &lt;STRONG&gt;display&lt;/STRONG&gt; the missing date as 99/9999 though, as &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller﻿&lt;/a&gt;&amp;nbsp;showed.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Oct 2016 23:00:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304207#M64735</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2016-10-12T23:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: how to create 99/9999 as MM/YYYY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304278#M64764</link>
      <description>&lt;P&gt;To what purpose? &amp;nbsp;If it is to display that in a report, then the simplest option is to have two variables - one a numeric date, and one a character version of that allowing for partials, and missing conversions. &amp;nbsp;This is&amp;nbsp;what we do for analysis domains, the numeric to perform windowing and such like, and character for listings so it reflects the data. &amp;nbsp;I would not recommend applying some sort of internal format to the data for two (actually 3) reasons - first anyone who uses SAS knows dates and that . indicates missing - if you try to change that underlying understanding then anyone who uses your code/data has to learn all your specific things. &amp;nbsp;Secondly it requires a SAS specific thing - formats - to achieve, if your data is going anywhere to another system/format then that will cause further issues for you. &amp;nbsp;Also, I personally avoid the use of proprietary binary files as much as possible - the 32bit versus 64bit completely destroying any work done previously with catalogs is a very good example of why. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 08:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-create-99-9999-as-MM-YYYY/m-p/304278#M64764</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-13T08:26:41Z</dc:date>
    </item>
  </channel>
</rss>

