<?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: Repeating a Compiled Macro? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Repeating-a-Compiled-Macro/m-p/116859#M24128</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Is this better?&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%Macro have( A , B , C , D )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Program goes here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%Mend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Now, I want to execute this program many times in the program with different set of parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%Have ( 1 ,&amp;nbsp; 2 ,&amp;nbsp; 3, 4)&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%Have (3,&amp;nbsp; 3 , 9,&amp;nbsp; 6)&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;...................................................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Nov 2012 04:42:52 GMT</pubDate>
    <dc:creator>Linlin</dc:creator>
    <dc:date>2012-11-05T04:42:52Z</dc:date>
    <item>
      <title>Repeating a Compiled Macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeating-a-Compiled-Macro/m-p/116858#M24127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure whether it was answered before in this community. (Sorry for duplicating). The question is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I have a macro with some parameters like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Macro have( A = , B =, C = , D &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Program goes here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Mend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I want to execute this program many times in the program with different set of parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Have ( A = 1 , B = 2 , C = 3, D = 4);&lt;/P&gt;&lt;P&gt;%Have ( A =&amp;nbsp; 3, B = 3 , C =9, D = 6);&lt;/P&gt;&lt;P&gt;.....................................................&lt;/P&gt;&lt;P&gt;......................................................&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This look litte ugly to me as repeating a macro progam. Are there other ways where we can produce the same results but looks nice.&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>Mon, 05 Nov 2012 04:32:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeating-a-Compiled-Macro/m-p/116858#M24127</guid>
      <dc:creator>bnarang</dc:creator>
      <dc:date>2012-11-05T04:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating a Compiled Macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeating-a-Compiled-Macro/m-p/116859#M24128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Is this better?&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%Macro have( A , B , C , D )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Program goes here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%Mend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;Now, I want to execute this program many times in the program with different set of parameters&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%Have ( 1 ,&amp;nbsp; 2 ,&amp;nbsp; 3, 4)&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;%Have (3,&amp;nbsp; 3 , 9,&amp;nbsp; 6)&lt;/P&gt;&lt;P style="font-size: 12.727272033691406px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;...................................................&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 04:42:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeating-a-Compiled-Macro/m-p/116859#M24128</guid>
      <dc:creator>Linlin</dc:creator>
      <dc:date>2012-11-05T04:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating a Compiled Macro?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Repeating-a-Compiled-Macro/m-p/116860#M24129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use a dataset to hold these parameter, then call execute them.&lt;/P&gt;&lt;P&gt;data x;&lt;/P&gt;&lt;P&gt; input a b c d;&lt;/P&gt;&lt;P&gt;cards;&lt;/P&gt;&lt;P&gt;1 2 3 4&lt;/P&gt;&lt;P&gt;3 3 9 6&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt; set x;&lt;/P&gt;&lt;P&gt;call execute( '%have(' || a || ',' || ....................... );run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Nov 2012 05:07:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Repeating-a-Compiled-Macro/m-p/116860#M24129</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2012-11-05T05:07:22Z</dc:date>
    </item>
  </channel>
</rss>

