<?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: Macros to run proc univariate on multiple tables in an ODBC and saving it in a single table in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macros-to-run-proc-univariate-on-multiple-tables-in-an-ODBC-and/m-p/359391#M23652</link>
    <description>&lt;P&gt;Much like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;you have provided the high level, so nothing further for us to comment on. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it was me doing it I would break it down as:&lt;/P&gt;
&lt;P&gt;1) Get data from database and save to SAS datasets in a given library.&lt;/P&gt;
&lt;P&gt;2) Generate the code from SASHELP.VTABLE, something like:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set sashelp.vtable (where=(libname="YOURLIB"));
  call execute('proc univariate....;
                    proc append base=...);
run;&lt;/PRE&gt;</description>
    <pubDate>Wed, 17 May 2017 14:28:46 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2017-05-17T14:28:46Z</dc:date>
    <item>
      <title>Macros to run proc univariate on multiple tables in an ODBC and saving it in a single table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macros-to-run-proc-univariate-on-multiple-tables-in-an-ODBC-and/m-p/359369#M23650</link>
      <description>&lt;P&gt;Creation of macros to run proc univariate on multiple tables from the ODBC (Oracle Server) and saving this in a single table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have around 40 tables in a particular schema on the Oracle server and would like to run Proc univariate on all the numeric fields from the tables and save it in a single table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know this is limited information, but I wanted to start with the high level and provide more information based on the updates I receive.&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 13:37:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macros-to-run-proc-univariate-on-multiple-tables-in-an-ODBC-and/m-p/359369#M23650</guid>
      <dc:creator>phoenix31</dc:creator>
      <dc:date>2017-05-17T13:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to run proc univariate on multiple tables in an ODBC and saving it in a single table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macros-to-run-proc-univariate-on-multiple-tables-in-an-ODBC-and/m-p/359384#M23651</link>
      <description>&lt;P&gt;Write a macro that loops through all of the Oracle tables and performs PROC UNIVARIATE on it, with results being stored in a SAS data set. In the same loop, append each SAS data set to the previous (PROC APPEND).&lt;/P&gt;</description>
      <pubDate>Wed, 17 May 2017 14:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macros-to-run-proc-univariate-on-multiple-tables-in-an-ODBC-and/m-p/359384#M23651</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2017-05-17T14:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: Macros to run proc univariate on multiple tables in an ODBC and saving it in a single table</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macros-to-run-proc-univariate-on-multiple-tables-in-an-ODBC-and/m-p/359391#M23652</link>
      <description>&lt;P&gt;Much like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10892"&gt;@PaigeMiller&lt;/a&gt;&amp;nbsp;you have provided the high level, so nothing further for us to comment on. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;If it was me doing it I would break it down as:&lt;/P&gt;
&lt;P&gt;1) Get data from database and save to SAS datasets in a given library.&lt;/P&gt;
&lt;P&gt;2) Generate the code from SASHELP.VTABLE, something like:&lt;/P&gt;
&lt;PRE&gt;data _null_;
  set sashelp.vtable (where=(libname="YOURLIB"));
  call execute('proc univariate....;
                    proc append base=...);
run;&lt;/PRE&gt;</description>
      <pubDate>Wed, 17 May 2017 14:28:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Macros-to-run-proc-univariate-on-multiple-tables-in-an-ODBC-and/m-p/359391#M23652</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-05-17T14:28:46Z</dc:date>
    </item>
  </channel>
</rss>

