<?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: How to export multiple datasets when using SAS Add-Ins and Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841568#M332757</link>
    <description>&lt;P&gt;This works for any dataset of your choosing, not just those in the SASHELP library. You can specify sending your data to a new sheet and provide the name:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1667186211521.png" style="width: 260px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76787iF5D83F27120F1F58/image-dimensions/260x241?v=v2" width="260" height="241" role="button" title="SASKiwi_0-1667186211521.png" alt="SASKiwi_0-1667186211521.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 31 Oct 2022 03:18:31 GMT</pubDate>
    <dc:creator>SASKiwi</dc:creator>
    <dc:date>2022-10-31T03:18:31Z</dc:date>
    <item>
      <title>How to export multiple datasets when using SAS Add-Ins and Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841366#M332683</link>
      <description>&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The situation that I am facing is as follow.&amp;nbsp; I am running a code inside Excel using SAS Add-Ins.&amp;nbsp; This code produce three datasets.&amp;nbsp; I am having difficulties exporting/printing each dataset to its own tab.&amp;nbsp; Thoughts?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example, redirect the output for Asia and Europe to individual tabs in Excel.&lt;/P&gt;&lt;P&gt;data cars;&lt;BR /&gt;set sashelp.cars;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=SASHELP.CARS(where=(Origin='Asia'));&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc print data=SASHELP.CARS(where=(Origin='Europe'));&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 21:34:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841366#M332683</guid>
      <dc:creator>carlos_jimenez</dc:creator>
      <dc:date>2022-10-28T21:34:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to export multiple datasets when using SAS Add-Ins and Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841371#M332686</link>
      <description>&lt;P&gt;As a minimum you should include the code that you are running. Then we have a chance to follow the attempt and may be able to provide comments.&lt;/P&gt;
&lt;P&gt;Better would be to show the Log from SAS when running your program to see if SAS is seeing potential problems.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 20:06:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841371#M332686</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2022-10-28T20:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to export multiple datasets when using SAS Add-Ins and Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841564#M332755</link>
      <description>&lt;P&gt;You don't have to code to do that. Just click on the Data icon in the SAS tab and click the Browse button. Select library SASHELP and dataset CARS and select Open. The default sheet name stays as Sheet1 but you can just change it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1667183159917.png" style="width: 506px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76786i85664C09433520AB/image-dimensions/506x105?v=v2" width="506" height="105" role="button" title="SASKiwi_0-1667183159917.png" alt="SASKiwi_0-1667183159917.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 02:27:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841564#M332755</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-31T02:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to export multiple datasets when using SAS Add-Ins and Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841566#M332756</link>
      <description>That was just an example since I cannot share privately owned data. The task is to export any resulting dataset to its respective tab.&lt;BR /&gt;</description>
      <pubDate>Mon, 31 Oct 2022 03:01:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841566#M332756</guid>
      <dc:creator>carlos_jimenez</dc:creator>
      <dc:date>2022-10-31T03:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to export multiple datasets when using SAS Add-Ins and Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841568#M332757</link>
      <description>&lt;P&gt;This works for any dataset of your choosing, not just those in the SASHELP library. You can specify sending your data to a new sheet and provide the name:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SASKiwi_0-1667186211521.png" style="width: 260px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/76787iF5D83F27120F1F58/image-dimensions/260x241?v=v2" width="260" height="241" role="button" title="SASKiwi_0-1667186211521.png" alt="SASKiwi_0-1667186211521.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 31 Oct 2022 03:18:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-export-multiple-datasets-when-using-SAS-Add-Ins-and-Excel/m-p/841568#M332757</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2022-10-31T03:18:31Z</dc:date>
    </item>
  </channel>
</rss>

