<?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: proc tabulate APPEND in option OUT= ? in Developers</title>
    <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352918#M5350</link>
    <description>&lt;P&gt;In that case, I would save all of your result sets in its own library. &amp;nbsp;Then, I would query dictionary.tables to gather all of the names of your results, while using the into: function in the query to get all of the names of the tables, separated by a space. &amp;nbsp;Then, I would run a datastep to merge the datasets. &amp;nbsp;Like such:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
SELECT MEMNAME INTO: NEWVAR SEPARATED BY " " FROM DICTIONARY.TABLES WHERE LIBNAME = 'MYLIBRARY';
QUIT; 

DATA ALLRESULTS;
SET ELIG.&amp;amp;NEWVAR;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Apr 2017 15:21:37 GMT</pubDate>
    <dc:creator>thomp7050</dc:creator>
    <dc:date>2017-04-24T15:21:37Z</dc:date>
    <item>
      <title>proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352895#M5345</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;I wish in a PROC TABULATE add data outputs (OUT &lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt; in an existing table, but keeping the data already present. Basically, to add the new data in the old table.&lt;/P&gt;&lt;P&gt;Is this possible? Is there an option to add in my OUT =?&lt;/P&gt;&lt;P&gt;Here's my code for my PROC TABULATE:&lt;/P&gt;&lt;P&gt;PROC TABULATE&lt;BR /&gt;DATA = WORK. OUT TABLEAU_GLOBAL_R6 IS WORK. TablesTABLEAU_R6;&lt;BR /&gt;&amp;nbsp;VAR delai_moyen;&lt;BR /&gt;&amp;nbsp;CLASS Type_Document / ORDER = UNFORMATTED MISSING;&lt;BR /&gt;&amp;nbsp;CLASS date_mois / ORDER = UNFORMATTED MISSING;&lt;BR /&gt;&amp;nbsp;TABLE / * ROW Statement * /.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;date_mois,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;* COLUMN Statement * /.&lt;BR /&gt;&amp;nbsp;(Type_Document =' ') *(delai_moyen * Mean={LABEL=""});&lt;BR /&gt;&amp;nbsp;;&lt;BR /&gt;RUN;&lt;BR /&gt;RUN; QUIT;&lt;/P&gt;&lt;P&gt;A big thank you to you.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:00:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352895#M5345</guid>
      <dc:creator>PAULOM</dc:creator>
      <dc:date>2017-04-24T15:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352896#M5346</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
CREATE TABLE ALLRESULTS AS
SELECT * FROM TABLEAU_GLOBAL_R6
UNION ALL
SELECT * FROM TABLEAU_GLOBAL_R5
UNION ALL
SELECT * FROM TABLEAU_GLOBAL_R4;
QUIT;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:02:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352896#M5346</guid>
      <dc:creator>thomp7050</dc:creator>
      <dc:date>2017-04-24T15:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352907#M5347</link>
      <description>&lt;P&gt;Combining data from different tables is the same regardless of the source of the table. It isn't quite clear what you want by you could:&lt;/P&gt;
&lt;P&gt;Combine the data with a datastep (set, merge or possibly update), proc sql join or possibly Proc append. However the OUT= option on proc tabulate will replace an existingd data set.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note that you can create multiple table statements within a single call to proc tabulate and all of the resulting tables will be in the OUT= dataset and there is a variable to indicate which table the output is from.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Examples of what you need to combine would be helpful&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352907#M5347</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-04-24T15:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352908#M5348</link>
      <description>Thank for your answer Thomp7050,&lt;BR /&gt;&lt;BR /&gt;But I have to throw my program every month, my output table name (ex: TablesTABLEAU_R6) will not change.&lt;BR /&gt;&lt;BR /&gt;I didn't want to change my program every month ^^</description>
      <pubDate>Mon, 24 Apr 2017 15:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352908#M5348</guid>
      <dc:creator>PAULOM</dc:creator>
      <dc:date>2017-04-24T15:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352917#M5349</link>
      <description>&lt;P&gt;I would say the answer is NO. Just add another step to your program.&lt;/P&gt;
&lt;P&gt;So if the goal is to append the reults from the proc tablulate that you just ran to a table named OUT.ALL_RUNS then you code will look like this.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate out=todays_run ....
proc append base=out.all_runs data=todays_run; 
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;But I expect you will have trouble with that if the variables that PROC TABULATE creates depends on the values in the input data. For PROC APPEND (or any type of insert into existing table operation) to work the base dataset needs to have all of the variables.&lt;/P&gt;
&lt;P&gt;You might have better results generating a summary of the data using PROC SUMMARY. You could then use PROC TABULATE to produce a nice report from that summary data and also append the summary data to your existing dataset.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:26:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352917#M5349</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-04-24T15:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352918#M5350</link>
      <description>&lt;P&gt;In that case, I would save all of your result sets in its own library. &amp;nbsp;Then, I would query dictionary.tables to gather all of the names of your results, while using the into: function in the query to get all of the names of the tables, separated by a space. &amp;nbsp;Then, I would run a datastep to merge the datasets. &amp;nbsp;Like such:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC SQL;
SELECT MEMNAME INTO: NEWVAR SEPARATED BY " " FROM DICTIONARY.TABLES WHERE LIBNAME = 'MYLIBRARY';
QUIT; 

DATA ALLRESULTS;
SET ELIG.&amp;amp;NEWVAR;
RUN;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:21:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352918#M5350</guid>
      <dc:creator>thomp7050</dc:creator>
      <dc:date>2017-04-24T15:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352919#M5351</link>
      <description>What I want is very simple actually (I'm complicated can be too life):&lt;BR /&gt;&lt;BR /&gt;every month I have to throw this proc tabulate that me returns an array and an output table, ex:&lt;BR /&gt;&lt;BR /&gt;Type_document | date_moisdelai_moyen&lt;BR /&gt;&lt;BR /&gt;ADC: 4-2017 | 12.5&lt;BR /&gt;ADP: 2017-4: 13&lt;BR /&gt;&lt;BR /&gt;Because we are in the month of April&lt;BR /&gt;&lt;BR /&gt;But in may I will:&lt;BR /&gt;&lt;BR /&gt;ADC | 5-2017 | 15.5&lt;BR /&gt;ADP | 5-2017 | 13.6&lt;BR /&gt;&lt;BR /&gt;So I want to in my table:&lt;BR /&gt;&lt;BR /&gt;ADC: 4-2017 | 12.5&lt;BR /&gt;ADP: 2017-4: 13&lt;BR /&gt;ADC | 5-2017 | 15.5&lt;BR /&gt;ADP | 5-2017 | 13.6&lt;BR /&gt;&lt;BR /&gt;So that I can use this table in a proc tabulate.&lt;BR /&gt;&lt;BR /&gt;Thanks</description>
      <pubDate>Mon, 24 Apr 2017 15:23:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352919#M5351</guid>
      <dc:creator>PAULOM</dc:creator>
      <dc:date>2017-04-24T15:23:36Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352922#M5352</link>
      <description>This code helps me a lot,&lt;BR /&gt;&lt;BR /&gt;in my library I have other tables that do not apply to this project. How to get only tables starting with "TablesTABLEAU*"? "&lt;BR /&gt;&lt;BR /&gt;What does ELIG?&lt;BR /&gt;&lt;BR /&gt;Thank you.</description>
      <pubDate>Mon, 24 Apr 2017 15:36:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352922#M5352</guid>
      <dc:creator>PAULOM</dc:creator>
      <dc:date>2017-04-24T15:36:47Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352923#M5353</link>
      <description>&lt;P&gt;Elig is just the name of the library I was using. &amp;nbsp;You can use any library name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the where clause of the sql statement, you can search for tables WHERE MEMNAME LIKE 'TablesTABLEAU%'; &amp;nbsp;That should do the trick. &amp;nbsp;OR just create another library with only your result sets. &amp;nbsp;Either way.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Apr 2017 15:39:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/352923#M5353</guid>
      <dc:creator>thomp7050</dc:creator>
      <dc:date>2017-04-24T15:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/353113#M5354</link>
      <description>Thanks a lot it's work !!&lt;BR /&gt;&lt;BR /&gt;Here my code :&lt;BR /&gt;&lt;BR /&gt;PROC SQL;&lt;BR /&gt;SELECT compress(LIBNAME)||'.'||compress(MEMNAME) INTO: NEWVAR SEPARATED BY " "&lt;BR /&gt;FROM DICTIONARY.TABLES WHERE LIBNAME = 'TDB' and MEMNAME like 'TablesTABLEAU%';&lt;BR /&gt;QUIT;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;DATA ALLRESULTS;&lt;BR /&gt;SET &amp;amp;NEWVAR;&lt;BR /&gt;RUN;&lt;BR /&gt;&lt;BR /&gt;Have a good day all &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 25 Apr 2017 07:36:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/353113#M5354</guid>
      <dc:creator>PAULOM</dc:creator>
      <dc:date>2017-04-25T07:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: proc tabulate APPEND in option OUT= ?</title>
      <link>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/353874#M5355</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/140648"&gt;@PAULOM&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I unmarked your solution and marked&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/138866"&gt;@thomp7050&lt;/a&gt;'s solution as correct, since that what you said helped you. Thanks for using the communities&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Shelley&lt;/P&gt;</description>
      <pubDate>Wed, 26 Apr 2017 19:59:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/proc-tabulate-APPEND-in-option-OUT/m-p/353874#M5355</guid>
      <dc:creator>ShelleySessoms</dc:creator>
      <dc:date>2017-04-26T19:59:46Z</dc:date>
    </item>
  </channel>
</rss>

