<?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: How do I run the same program multiple times with macro value changed in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-run-the-same-program-multiple-times-with-macro-value/m-p/15572#M2073</link>
    <description>Share what code you have for feedback.  Yes, the WEEK of a year can go to 53, and there are considerations for what is termed "ISO year/date/week" to consider, influenced by the day-of-week when a year starts.  The SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;   website has reference information on the topic - here is a Google advanced search argument against site SAS.COM only:&lt;BR /&gt;
&lt;BR /&gt;
iso week site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
    <pubDate>Mon, 06 Apr 2009 17:15:19 GMT</pubDate>
    <dc:creator>sbb</dc:creator>
    <dc:date>2009-04-06T17:15:19Z</dc:date>
    <item>
      <title>How do I run the same program multiple times with macro value changed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-run-the-same-program-multiple-times-with-macro-value/m-p/15571#M2072</link>
      <description>Hi&lt;BR /&gt;
&lt;BR /&gt;
I have written a program converting flat files into data. These files are submitted weekly. My problem is that I have files from back to 2006 and to avoid manually runnning the program for each week I would like to do find an easier way.&lt;BR /&gt;
&lt;BR /&gt;
As the first thing in my program I have a macro giving a week number and a year number:&lt;BR /&gt;
%let week = XX; &lt;BR /&gt;
%let year = XX;&lt;BR /&gt;
&lt;BR /&gt;
Is it possible for the week to go from 01 til 52? (running the program 52 times with only week changed). I have tried putting it all in a do-loop but it doesn't seems to work with an entire program.&lt;BR /&gt;
&lt;BR /&gt;
All help is appreciated.&lt;BR /&gt;
&lt;BR /&gt;
Thanks.</description>
      <pubDate>Mon, 06 Apr 2009 14:55:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-run-the-same-program-multiple-times-with-macro-value/m-p/15571#M2072</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-04-06T14:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: How do I run the same program multiple times with macro value changed</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-run-the-same-program-multiple-times-with-macro-value/m-p/15572#M2073</link>
      <description>Share what code you have for feedback.  Yes, the WEEK of a year can go to 53, and there are considerations for what is termed "ISO year/date/week" to consider, influenced by the day-of-week when a year starts.  The SAS support &lt;A href="http://support.sas.com/" target="_blank"&gt;http://support.sas.com/&lt;/A&gt;   website has reference information on the topic - here is a Google advanced search argument against site SAS.COM only:&lt;BR /&gt;
&lt;BR /&gt;
iso week site:sas.com&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.</description>
      <pubDate>Mon, 06 Apr 2009 17:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-run-the-same-program-multiple-times-with-macro-value/m-p/15572#M2073</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-04-06T17:15:19Z</dc:date>
    </item>
  </channel>
</rss>

