<?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 PROC APPEND FROM MULTIPLE TABLE in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311344#M67265</link>
    <description>&lt;P&gt;I want to append all dataset into one (using proc append) I'm using below code, but not giving output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select count(*) into : obs from sashelp.vtable&lt;BR /&gt;where libname = 'ABC';&lt;/P&gt;&lt;P&gt;%LET OBS=&amp;amp;OBS;&lt;BR /&gt;SELECT memname&amp;nbsp;INTO : TAB1-:TAB&amp;amp;OBS FROM sashelp.vtable&lt;BR /&gt;where libanme = 'ABC';&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;%MACRO append;&lt;BR /&gt;%DO i=1 %to &amp;amp;obs;&lt;BR /&gt;proc append base=tot_comb data=&amp;amp;&amp;amp;tab&amp;amp;i force;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;%append;&lt;/P&gt;</description>
    <pubDate>Mon, 14 Nov 2016 08:44:05 GMT</pubDate>
    <dc:creator>atul_desh</dc:creator>
    <dc:date>2016-11-14T08:44:05Z</dc:date>
    <item>
      <title>PROC APPEND FROM MULTIPLE TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311344#M67265</link>
      <description>&lt;P&gt;I want to append all dataset into one (using proc append) I'm using below code, but not giving output&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help !!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select count(*) into : obs from sashelp.vtable&lt;BR /&gt;where libname = 'ABC';&lt;/P&gt;&lt;P&gt;%LET OBS=&amp;amp;OBS;&lt;BR /&gt;SELECT memname&amp;nbsp;INTO : TAB1-:TAB&amp;amp;OBS FROM sashelp.vtable&lt;BR /&gt;where libanme = 'ABC';&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;%MACRO append;&lt;BR /&gt;%DO i=1 %to &amp;amp;obs;&lt;BR /&gt;proc append base=tot_comb data=&amp;amp;&amp;amp;tab&amp;amp;i force;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;%append;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 08:44:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311344#M67265</guid>
      <dc:creator>atul_desh</dc:creator>
      <dc:date>2016-11-14T08:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND FROM MULTIPLE TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311345#M67266</link>
      <description>&lt;P&gt;Are you getting errors?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Pleae explain how it isn't working.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Make sure to ru it with mprint symbolgen on to see what's happening.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 08:48:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311345#M67266</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-14T08:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND FROM MULTIPLE TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311348#M67267</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;809 proc sql;&lt;BR /&gt;810 select count(*) into : obs from sashelp.vtable&lt;BR /&gt;811 where libname = 'ABC';&lt;BR /&gt;812 %LET OBS=&amp;amp;OBS;&lt;BR /&gt;SYMBOLGEN: Macro variable OBS resolves to 3&lt;BR /&gt;813 SELECT memname INTO : TAB1-:TAB&amp;amp;OBS FROM sashelp.vtable&lt;BR /&gt;SYMBOLGEN: Macro variable OBS resolves to 3&lt;BR /&gt;814 where libanme = 'ABC';&lt;BR /&gt;ERROR: The following columns were not found in the contributing tables: libanme.&lt;BR /&gt;815 QUIT;&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SQL used (Total process time):&lt;BR /&gt;real time 0.13 seconds&lt;BR /&gt;cpu time 0.03 seconds&lt;/P&gt;&lt;P&gt;816 %MACRO append;&lt;BR /&gt;817 %DO i=1 %to &amp;amp;obs;&lt;BR /&gt;818 proc append base=tot_comb data=&amp;amp;&amp;amp;tab&amp;amp;i force;run;&lt;BR /&gt;819 %end;&lt;BR /&gt;820 %mend;&lt;BR /&gt;821 %append;&lt;BR /&gt;MLOGIC(APPEND): Beginning execution.&lt;BR /&gt;SYMBOLGEN: Macro variable OBS resolves to 3&lt;BR /&gt;MLOGIC(APPEND): %DO loop beginning; index variable I; start value is 1; stop value is 3; by value is&lt;BR /&gt;1.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Macro variable I resolves to 1&lt;BR /&gt;NOTE: Line generated by the macro variable "I".&lt;BR /&gt;1 &amp;amp;tab1&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;WARNING: Apparent symbolic reference TAB1 not resolved.&lt;BR /&gt;ERROR: File WORK.TAB1.DATA does not exist.&lt;BR /&gt;MPRINT(APPEND): proc append base=tot_comb data=&amp;amp;tab1 force;&lt;BR /&gt;MPRINT(APPEND): run;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;NOTE: PROCEDURE APPEND used (Total process time):&lt;BR /&gt;real time 0.02 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;MLOGIC(APPEND): %DO loop index variable I is now 2; loop will iterate again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Macro variable I resolves to 2&lt;BR /&gt;NOTE: Line generated by the macro variable "I".&lt;BR /&gt;1 &amp;amp;tab2&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;WARNING: Apparent symbolic reference TAB2 not resolved.&lt;BR /&gt;ERROR: File WORK.TAB2.DATA does not exist.&lt;BR /&gt;MPRINT(APPEND): proc append base=tot_comb data=&amp;amp;tab2 force;&lt;BR /&gt;MPRINT(APPEND): run;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;NOTE: PROCEDURE APPEND used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;MLOGIC(APPEND): %DO loop index variable I is now 3; loop will iterate again.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;BR /&gt;SYMBOLGEN: Macro variable I resolves to 3&lt;BR /&gt;NOTE: Line generated by the macro variable "I".&lt;BR /&gt;1 &amp;amp;tab3&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;WARNING: Apparent symbolic reference TAB3 not resolved.&lt;BR /&gt;ERROR: File WORK.TAB3.DATA does not exist.&lt;BR /&gt;MPRINT(APPEND): proc append base=tot_comb data=&amp;amp;tab3 force;&lt;BR /&gt;MPRINT(APPEND): run;&lt;/P&gt;&lt;P&gt;ERROR 22-322: Expecting a name.&lt;/P&gt;&lt;P&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;/P&gt;&lt;P&gt;NOTE: Statements not processed because of errors noted above.&lt;BR /&gt;NOTE: PROCEDURE APPEND used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;MLOGIC(APPEND): %DO loop index variable I is now 4; loop will not iterate again.&lt;BR /&gt;MLOGIC(APPEND): Ending execution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 08:54:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311348#M67267</guid>
      <dc:creator>atul_desh</dc:creator>
      <dc:date>2016-11-14T08:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND FROM MULTIPLE TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311349#M67268</link>
      <description>&lt;P&gt;Uh...you should probably fix those errors from the first proc?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Take a a look at the table and and make sure your query is correct. I'm not in front of a computer with SAS to answer the actual column name.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 08:57:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311349#M67268</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-11-14T08:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND FROM MULTIPLE TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311350#M67269</link>
      <description>&lt;P&gt;sorry...Its working !!&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 08:58:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311350#M67269</guid>
      <dc:creator>atul_desh</dc:creator>
      <dc:date>2016-11-14T08:58:03Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND FROM MULTIPLE TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311352#M67270</link>
      <description>yeah...i got the output..thanks...but just a quick question (I was missing that base table should have same schema similar to data from which i'm appending) :&lt;BR /&gt;&lt;BR /&gt;proc sql;&lt;BR /&gt;select count(*) into : obs from sashelp.vtable&lt;BR /&gt;where libname = 'ABC';&lt;BR /&gt;%LET OBS=&amp;amp;OBS;&lt;BR /&gt;SELECT catx('.', 'abc', memname) INTO : TAB1-:TAB&amp;amp;OBS FROM sashelp.vtable&lt;BR /&gt;where libname = 'ABC';&lt;BR /&gt;QUIT;&lt;BR /&gt;%MACRO append;&lt;BR /&gt;%DO i=1 %to &amp;amp;obs;&lt;BR /&gt;proc append base=tot_comb data=&amp;amp;&amp;amp;tab&amp;amp;i force;run;&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;BR /&gt;%append;&lt;BR /&gt;&lt;BR /&gt;proc print data=tot_comb;&lt;BR /&gt;run;</description>
      <pubDate>Mon, 14 Nov 2016 09:06:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311352#M67270</guid>
      <dc:creator>atul_desh</dc:creator>
      <dc:date>2016-11-14T09:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: PROC APPEND FROM MULTIPLE TABLE</title>
      <link>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311355#M67273</link>
      <description>&lt;P&gt;And what is the question?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 09:30:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/PROC-APPEND-FROM-MULTIPLE-TABLE/m-p/311355#M67273</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2016-11-14T09:30:19Z</dc:date>
    </item>
  </channel>
</rss>

