<?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: Outputting macro call output to a table and appending it with every macro call in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316533#M69195</link>
    <description>&lt;P&gt;Make them have the same name in your macro don't fix it after.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 04 Dec 2016 01:28:16 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2016-12-04T01:28:16Z</dc:date>
    <item>
      <title>Outputting macro call output to a table and appending it with every macro call</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316516#M69183</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Here is what i need help into.&lt;/P&gt;&lt;P&gt;I have two macro definations&lt;/P&gt;&lt;P&gt;Macro1 and Macro2&lt;/P&gt;&lt;P&gt;and they have macro calls as&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro1(a,b,c)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%macro1(a1,b1,c1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%macro1(a2,b2,c2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;%macro2(p1,q1,r1,s1)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%macro2(p2,q2,r2,s2)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%macro2(p3,q3,r3,s3)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;%macro2(p4,q4,r4,s4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Both macro1 and macro2 have proc sql statement within them and output a 2 column 2 row output(1st row headers,which are differant for each macro call and second rows are numeric values.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want to append all results of macro calls(for both tables) into a &amp;nbsp;SAS dataset.Please help me on this.Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 03 Dec 2016 20:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316516#M69183</guid>
      <dc:creator>srdhoble</dc:creator>
      <dc:date>2016-12-03T20:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting macro call output to a table and appending it with every macro call</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316526#M69189</link>
      <description>&lt;P&gt;Here are two options.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option 1:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make each macro generate an output table with a unique name and then appemd the results. Use a naming convention, such as a common prefix so that you can use either a colon or list to append all easily.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data results;&lt;/P&gt;
&lt;P&gt;set result1-result10;*appends all tables in between result1, result2, etc;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;OR&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;/P&gt;
&lt;P&gt;Set result:; *will append any table starting with the work result;&lt;/P&gt;
&lt;P&gt;run;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option 2:&lt;/P&gt;
&lt;P&gt;Or have each iteration of the macro append the results to a main result table. If you rerun a section you'll end up,with duplicate results so would need to manage that.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For this option look at PROC appemd.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 01:10:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316526#M69189</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-04T01:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting macro call output to a table and appending it with every macro call</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316529#M69191</link>
      <description>Hi..thanks for reply,here is what i am trying to do now....i generated&lt;BR /&gt;tables with differant names....&lt;BR /&gt;&lt;BR /&gt;So now i have table t1 with columns a,b&lt;BR /&gt;table t2 with colums c,d&lt;BR /&gt;&lt;BR /&gt;I want to have table three with following column names and values:&lt;BR /&gt;t3 with column name X Y&lt;BR /&gt;a b&lt;BR /&gt;1 2&lt;BR /&gt;c d&lt;BR /&gt;2 1&lt;BR /&gt;so basically i want to have column headers and column values in t3 from&lt;BR /&gt;table t1 and t2.Please guide me on this.TIA&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Sun, 04 Dec 2016 01:26:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316529#M69191</guid>
      <dc:creator>srdhoble</dc:creator>
      <dc:date>2016-12-04T01:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting macro call output to a table and appending it with every macro call</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316531#M69193</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi..thanks for reply,here is what i am trying to do now....i generated tables with differant names....&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So now i have table t1 with columns a,b&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; table t2 with colums c,d&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I want to have table three with following column names and values:&lt;/DIV&gt;&lt;DIV&gt;t3 &amp;nbsp;with column name &amp;nbsp; &amp;nbsp;X Y&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a &amp;nbsp;b&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1 2&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;c d&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2 1&lt;/DIV&gt;&lt;DIV&gt;so basically i want to have column headers and column values in t3 from table t1 and t2.Please guide me on this.TIA&lt;/DIV&gt;</description>
      <pubDate>Sun, 04 Dec 2016 01:27:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316531#M69193</guid>
      <dc:creator>srdhoble</dc:creator>
      <dc:date>2016-12-04T01:27:16Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting macro call output to a table and appending it with every macro call</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316532#M69194</link>
      <description>&lt;P&gt;Make them have the same name in your macro don't fix it after.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 01:28:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316532#M69194</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-04T01:28:13Z</dc:date>
    </item>
    <item>
      <title>Re: Outputting macro call output to a table and appending it with every macro call</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316533#M69195</link>
      <description>&lt;P&gt;Make them have the same name in your macro don't fix it after.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 04 Dec 2016 01:28:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Outputting-macro-call-output-to-a-table-and-appending-it-with/m-p/316533#M69195</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-04T01:28:16Z</dc:date>
    </item>
  </channel>
</rss>

