<?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 program for printing out the day in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/program-for-printing-out-the-day/m-p/721485#M223636</link>
    <description>&lt;P&gt;good day everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have learnt a code which can print out the days of my current month recently like below:&lt;/P&gt;
&lt;P&gt;can i change this program to auto print out latest \ future six month?&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;data test(keep=date);
   firstday=intnx('month', today(), 0, 'b');
   lastday=intnx('month', today(), 0, 'e');

   do date=firstday to lastday;
      output;
   end;

   format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harry&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 24 Feb 2021 06:30:06 GMT</pubDate>
    <dc:creator>harrylui</dc:creator>
    <dc:date>2021-02-24T06:30:06Z</dc:date>
    <item>
      <title>program for printing out the day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-for-printing-out-the-day/m-p/721485#M223636</link>
      <description>&lt;P&gt;good day everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have learnt a code which can print out the days of my current month recently like below:&lt;/P&gt;
&lt;P&gt;can i change this program to auto print out latest \ future six month?&amp;nbsp;&lt;/P&gt;
&lt;PRE class="language-sas"&gt;&lt;CODE&gt;data test(keep=date);
   firstday=intnx('month', today(), 0, 'b');
   lastday=intnx('month', today(), 0, 'e');

   do date=firstday to lastday;
      output;
   end;

   format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Harry&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Feb 2021 06:30:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-for-printing-out-the-day/m-p/721485#M223636</guid>
      <dc:creator>harrylui</dc:creator>
      <dc:date>2021-02-24T06:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: program for printing out the day</title>
      <link>https://communities.sas.com/t5/SAS-Programming/program-for-printing-out-the-day/m-p/721487#M223638</link>
      <description>&lt;P&gt;Yes, edit the &lt;A href="https://sasnrd.com/sas-date-examples-intnx-intck/" target="_self"&gt;intnx function&lt;/A&gt; like this.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test(keep=date);
   firstday=intnx('month', today(), -6, 'b');
   lastday=intnx('month', today(), 6, 'e');

   do date=firstday to lastday;
      output;
   end;

   format date date9.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Mar 2021 11:08:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/program-for-printing-out-the-day/m-p/721487#M223638</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2021-03-04T11:08:58Z</dc:date>
    </item>
  </channel>
</rss>

