<?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 data null to format date in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-null-to-format-date/m-p/141863#M28467</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;DATA&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;_NULL_&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;CALL&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; SYMPUT(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'date1'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;,&amp;amp;prev_me); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp; CALL SYMPUT('date1',&amp;amp;prev_me);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;SYMBOLGEN:&amp;nbsp; Macro variable PREV_ME resolves to 201405&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;amp;prev_me is part of an internal calendar that automactically formats the year previous month, in this case May. &lt;/P&gt;&lt;P&gt;Now I need to format this date in this format&amp;nbsp; month year&amp;nbsp; (may14)&amp;nbsp; or the text version of the month then the year.&lt;/P&gt;&lt;P&gt;This will allow me to use this to capture datasets based on their month and year (ie. link_&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;may14&lt;/STRONG&gt;&lt;/SPAN&gt;_he&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I adjust the data null to achieve this result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Jun 2014 15:27:10 GMT</pubDate>
    <dc:creator>Q1983</dc:creator>
    <dc:date>2014-06-13T15:27:10Z</dc:date>
    <item>
      <title>data null to format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-null-to-format-date/m-p/141863#M28467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;DATA&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;_NULL_&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue;"&gt;CALL&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt; SYMPUT(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple;"&gt;'date1'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;,&amp;amp;prev_me); &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; background: white; font-family: 'Courier New';"&gt;RUN&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;&amp;nbsp; CALL SYMPUT('date1',&amp;amp;prev_me);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black;"&gt;SYMBOLGEN:&amp;nbsp; Macro variable PREV_ME resolves to 201405&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &amp;amp;prev_me is part of an internal calendar that automactically formats the year previous month, in this case May. &lt;/P&gt;&lt;P&gt;Now I need to format this date in this format&amp;nbsp; month year&amp;nbsp; (may14)&amp;nbsp; or the text version of the month then the year.&lt;/P&gt;&lt;P&gt;This will allow me to use this to capture datasets based on their month and year (ie. link_&lt;SPAN style="font-size: 14pt;"&gt;&lt;STRONG&gt;may14&lt;/STRONG&gt;&lt;/SPAN&gt;_he&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I adjust the data null to achieve this result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 15:27:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-null-to-format-date/m-p/141863#M28467</guid>
      <dc:creator>Q1983</dc:creator>
      <dc:date>2014-06-13T15:27:10Z</dc:date>
    </item>
    <item>
      <title>Re: data null to format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-null-to-format-date/m-p/141864#M28468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;call symput('date1', put(&amp;amp;prev_me, monyy5.));&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 15:30:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-null-to-format-date/m-p/141864#M28468</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-06-13T15:30:57Z</dc:date>
    </item>
    <item>
      <title>Re: data null to format date</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-null-to-format-date/m-p/141865#M28469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Looks like you want to convert YYYYMM to MONYY.&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; prev_me = 201405 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%let&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; date1 = %lowcase(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%sysfunc&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;(inputn(&amp;amp;prev_me.01,yymmdd8.),monyy5.)) ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%put&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &amp;amp;=prev_me &amp;amp;=date1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'courier new', courier;"&gt;PREV_ME=201405 DATE1=may14&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 20:33:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-null-to-format-date/m-p/141865#M28469</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-06-13T20:33:48Z</dc:date>
    </item>
  </channel>
</rss>

