<?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 Macro to run the same code multiple times in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-run-the-same-code-multiple-times/m-p/114742#M23622</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping I can write a macro to run the same piece of code a number of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to run it once per month on the last day of the month beginning June 30, 2012 to June 30&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates always trip me up when I want to have the date update each time through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have a prompt for the user to enter the start date and the end date (in case they want to change the date ranges).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help structuring the macro so the month end date changes each pass through would be so welcomed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Oct 2013 16:14:46 GMT</pubDate>
    <dc:creator>Shara</dc:creator>
    <dc:date>2013-10-17T16:14:46Z</dc:date>
    <item>
      <title>Macro to run the same code multiple times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-run-the-same-code-multiple-times/m-p/114742#M23622</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm hoping I can write a macro to run the same piece of code a number of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to run it once per month on the last day of the month beginning June 30, 2012 to June 30&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;, 2013.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dates always trip me up when I want to have the date update each time through.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will have a prompt for the user to enter the start date and the end date (in case they want to change the date ranges).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help structuring the macro so the month end date changes each pass through would be so welcomed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 16:14:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-run-the-same-code-multiple-times/m-p/114742#M23622</guid>
      <dc:creator>Shara</dc:creator>
      <dc:date>2013-10-17T16:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: Macro to run the same code multiple times</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Macro-to-run-the-same-code-multiple-times/m-p/114743#M23623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you would want to use the INTNX function, with the alignment parameter set to E.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could also include this calculation in the %SYSFUNC macro function, and put it in a macro loop to increment to the last day of the next month each iteration of the macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Oct 2013 16:25:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Macro-to-run-the-same-code-multiple-times/m-p/114743#M23623</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2013-10-17T16:25:18Z</dc:date>
    </item>
  </channel>
</rss>

