<?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 Export-Multiple tables to same sheet in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536975#M147626</link>
    <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; without replace sas complaints that the file already exists.</description>
    <pubDate>Wed, 20 Feb 2019 06:34:15 GMT</pubDate>
    <dc:creator>andreas_lds</dc:creator>
    <dc:date>2019-02-20T06:34:15Z</dc:date>
    <item>
      <title>Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536650#M147496</link>
      <description>&lt;P&gt;Hello&lt;BR /&gt;Can I use proc export to export multiple tables to same worksheet?&lt;BR /&gt;In this example I want to create 3 sheets: Cars1, Cars2, Cars3.&lt;BR /&gt;In sheet "Cars1" I want to have 2 tables.&lt;BR /&gt;The code that I run create only one table in sheet "Cars1"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;***Export multiple tables with Proc Export-multiple tables to same sheet***;
Proc export data=sashelp.Cars(obs=2)  
outfile="/Path/example.xlsx"
dbms=xlsx
replace;
sheet="Cars1";
Proc export data=sashelp.Cars (obs=3)  
outfile="/Path/example.xlsx"
dbms=xlsx 
replace;
sheet="Cars1";
Proc export data=sashelp.Cars(obs=4)   
outfile="/Path/example.xlsx"
dbms=xlsx 
replace;
sheet="Cars2";
Proc export data=sashelp.Cars (obs=5)  
outfile="/Path/example.xlsx"
dbms=xlsx 
replace;
sheet="Cars3";
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Feb 2019 05:40:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536650#M147496</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-02-19T05:40:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536656#M147498</link>
      <description>&lt;P&gt;You can't do that with proc export, as each run creates a new file/sheet (and overwrites the previous one because that is allowed by the replace option).&lt;/P&gt;
&lt;P&gt;You can do this with ods excel and using the sheet_interval="none" and sheet_name="somename" options.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 06:17:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536656#M147498</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-02-19T06:17:49Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536659#M147499</link>
      <description>&lt;P&gt;Apparently this functionality was added in SAS 9.4M1. What SAS version are you using?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/51/580.html" target="_blank"&gt;http://support.sas.com/kb/51/580.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 07:09:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536659#M147499</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-19T07:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536671#M147504</link>
      <description>&lt;P&gt;This is already being covered here:&lt;BR /&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/ods-excel-multiple-sheets/m-p/536648/highlight/false#M147494" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/ods-excel-multiple-sheets/m-p/536648/highlight/false#M147494&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you want to use proc export or ods excel?&amp;nbsp; I would suggest if ods excel does what you need stick with that as it is far more flexible than export, if export can even achieve what is needed.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 08:59:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536671#M147504</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2019-02-19T08:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536672#M147505</link>
      <description>&lt;P&gt;SAS enterprise Guide 7.1&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 09:03:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536672#M147505</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-02-19T09:03:47Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536675#M147508</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Apparently this functionality was added in SAS 9.4M1. What SAS version are you using?&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/51/580.html" target="_blank" rel="noopener"&gt;http://support.sas.com/kb/51/580.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;With 9.4m1 creating multiple sheets is possible, but not exporting multiple datasets to one sheet.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Feb 2019 09:06:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536675#M147508</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-19T09:06:53Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536714#M147532</link>
      <description>Try to remove option REPLACE .</description>
      <pubDate>Tue, 19 Feb 2019 13:07:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536714#M147532</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2019-02-19T13:07:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536866#M147587</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;&amp;nbsp;- that is your Enterprise Guide version, not your SAS version. Run this and post your SAS log:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%put I am using release: &amp;amp;sysvlong;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Feb 2019 18:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536866#M147587</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-19T18:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536975#M147626</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt; without replace sas complaints that the file already exists.</description>
      <pubDate>Wed, 20 Feb 2019 06:34:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/536975#M147626</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2019-02-20T06:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/537336#M147775</link>
      <description>Why not append the 2 data sets using data step or proc append then export.</description>
      <pubDate>Thu, 21 Feb 2019 08:21:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/537336#M147775</guid>
      <dc:creator>Satish_Parida</dc:creator>
      <dc:date>2019-02-21T08:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Export-Multiple tables to same sheet</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/607963#M176845</link>
      <description>&lt;P&gt;Because maybe the data sets have different variables&amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Nov 2019 06:03:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Export-Multiple-tables-to-same-sheet/m-p/607963#M176845</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2019-11-28T06:03:13Z</dc:date>
    </item>
  </channel>
</rss>

