<?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: mmdy format in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811621#M33954</link>
    <description>&lt;BR /&gt;Thank you thats working</description>
    <pubDate>Thu, 05 May 2022 08:48:31 GMT</pubDate>
    <dc:creator>Aayushi_17</dc:creator>
    <dc:date>2022-05-05T08:48:31Z</dc:date>
    <item>
      <title>mmdy format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811609#M33951</link>
      <description>&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to convert the date if it is month and day format for eg.&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Date&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;Required output&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;19 APR&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;04-19&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to get the required output.&lt;/P&gt;&lt;P&gt;Thanks in advance&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 07:13:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811609#M33951</guid>
      <dc:creator>Aayushi_17</dc:creator>
      <dc:date>2022-05-05T07:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: mmdy format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811613#M33952</link>
      <description>&lt;P&gt;Afaik there is no format displaying month and day. Check the docs about picture formats, i am sure that such a format could be created.&lt;/P&gt;</description>
      <pubDate>Thu, 05 May 2022 07:58:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811613#M33952</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2022-05-05T07:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: mmdy format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811618#M33953</link>
      <description>&lt;P&gt;So you do have a string consisting of two parts, separated by a blank, the first part the numeric day of a month, the second the month name in capitals?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you do not have a date (because the year is missing), you first need to add a year (which is unimportant), so you can then use a custom picture format:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
picture mdd
  low-high = '%0m-%0d' (datatype=date)
;
run;

data test;
have = "19 APR";
want = put(input(compress(have)!!"2022",date9.),mdd.);
run;

proc print data=test noobs;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;PRE&gt;have	want
19 APR	04-19
&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 May 2022 08:27:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811618#M33953</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2022-05-05T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: mmdy format</title>
      <link>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811621#M33954</link>
      <description>&lt;BR /&gt;Thank you thats working</description>
      <pubDate>Thu, 05 May 2022 08:48:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/mmdy-format/m-p/811621#M33954</guid>
      <dc:creator>Aayushi_17</dc:creator>
      <dc:date>2022-05-05T08:48:31Z</dc:date>
    </item>
  </channel>
</rss>

