<?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 SAS Date MMM-YY in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94444#M26723</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to format a SAS date from MMMYY to MMM-YY&amp;nbsp; (i.e. OCT12 to OCT-12).&lt;/P&gt;&lt;P&gt;This is the code.&amp;nbsp; I can't figure out how to add a - between the month and the year.&lt;/P&gt;&lt;P&gt;Thank you for input you may have!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc&amp;nbsp; format ;&lt;/P&gt;&lt;P&gt;picture fmt(default=5)&lt;/P&gt;&lt;P&gt;other='%b%y'(datatype=date);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;a=23234;&lt;/P&gt;&lt;P&gt;format a fmt.;&lt;/P&gt;&lt;P&gt;put a= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Oct 2012 12:36:52 GMT</pubDate>
    <dc:creator>KevinC_</dc:creator>
    <dc:date>2012-10-13T12:36:52Z</dc:date>
    <item>
      <title>SAS Date MMM-YY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94444#M26723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to format a SAS date from MMMYY to MMM-YY&amp;nbsp; (i.e. OCT12 to OCT-12).&lt;/P&gt;&lt;P&gt;This is the code.&amp;nbsp; I can't figure out how to add a - between the month and the year.&lt;/P&gt;&lt;P&gt;Thank you for input you may have!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc&amp;nbsp; format ;&lt;/P&gt;&lt;P&gt;picture fmt(default=5)&lt;/P&gt;&lt;P&gt;other='%b%y'(datatype=date);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;a=23234;&lt;/P&gt;&lt;P&gt;format a fmt.;&lt;/P&gt;&lt;P&gt;put a= ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2012 12:36:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94444#M26723</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2012-10-13T12:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date MMM-YY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94445#M26724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;proc&amp;nbsp; format ;&lt;/P&gt;&lt;P&gt;picture fmt(default=6)&lt;/P&gt;&lt;P&gt;other='%b-%y'(datatype=date);&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data want;&lt;/P&gt;&lt;P&gt;a=23234;&lt;/P&gt;&lt;P&gt;format a fmt.;&lt;/P&gt;&lt;P&gt;proc print;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by:Linlin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2012 13:28:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94445#M26724</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-10-13T13:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date MMM-YY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94446#M26725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just include the hyphen in the picture format text. You might also want to look at the built in format NLDATEYM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc&amp;nbsp; format ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; picture fmtA(default=5) other='%b%y'(datatype=date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; picture fmtB(default=6) other='%b-%y'(datatype=date);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;data _null_;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; a='13OCT2012'd ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp; put a= date9. / a fmtA. / a fmtB. / a&amp;nbsp; nldateym6. ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;a=13OCT2012&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OCT12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;OCT-12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Oct 12&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2012 14:26:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94446#M26725</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-10-13T14:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date MMM-YY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94447#M26726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked beautifully!&amp;nbsp; I really appreciate your input and suggestions.&amp;nbsp; That was awesome!!&lt;/P&gt;&lt;P&gt;Thank you again &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2012 14:38:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94447#M26726</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2012-10-13T14:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Date MMM-YY</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94448#M26727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Linlin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your reply and suggestions!&amp;nbsp; I really learned something new today.&lt;/P&gt;&lt;P&gt;Thank you guys!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2012 14:40:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/SAS-Date-MMM-YY/m-p/94448#M26727</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2012-10-13T14:40:20Z</dc:date>
    </item>
  </channel>
</rss>

