<?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 Loop an entire Program in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49144#M10164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends!&amp;nbsp; Yes, you can wrap as many things as you would like to within one Macro.&amp;nbsp; It just can get complicated if you have to manage things like file names, variables, etc.&amp;nbsp; E.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro doit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %do i=1 %to 1000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;%mend doit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%doit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Nov 2011 23:05:31 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2011-11-16T23:05:31Z</dc:date>
    <item>
      <title>Loop an entire Program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49143#M10163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm quite new to SAS and I haven't worked with macros yet. Could you tell me if it's possible to loop an entire SAS program. With SAS program I mean different procedures such as DATA and IML. The program contains various random drawings and I would like to loop the program a certain number of times to get different results. The results for each run should be added to the previous results.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since I'm using different procedures I was wondering if there might be a "simple" macro to do the loop. Or is it smarter to do individual loops for every procedure?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a million!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 22:46:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49143#M10163</guid>
      <dc:creator>MarkGIP</dc:creator>
      <dc:date>2011-11-16T22:46:46Z</dc:date>
    </item>
    <item>
      <title>Loop an entire Program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49144#M10164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depends!&amp;nbsp; Yes, you can wrap as many things as you would like to within one Macro.&amp;nbsp; It just can get complicated if you have to manage things like file names, variables, etc.&amp;nbsp; E.g.,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro doit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %do i=1 %to 1000000;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc whatever;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;%mend doit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%doit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 23:05:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49144#M10164</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-11-16T23:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Loop an entire Program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49145#M10165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can loop an entire program but you may not want to.&amp;nbsp; You mention random drawings (samples) which suggests to me some sort of simulation.&amp;nbsp; I would suggest you look at SURVEYSELECT and BY group processing.&amp;nbsp; Tell us more about what you are actually trying to do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may find this paper useful &lt;A href="http://analytics.ncsu.edu/sesug/2008/ST-143.pdf"&gt;http://analytics.ncsu.edu/sesug/2008/ST-143.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Nov 2011 23:34:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49145#M10165</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2011-11-16T23:34:23Z</dc:date>
    </item>
    <item>
      <title>Loop an entire Program</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49146#M10166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;%include is very handy when you have a few program's to run - or a program to run a few times&lt;/P&gt;&lt;P&gt;Chech the on line doc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 Nov 2011 08:44:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Loop-an-entire-Program/m-p/49146#M10166</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-11-19T08:44:38Z</dc:date>
    </item>
  </channel>
</rss>

