<?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: Export to excel  with special requirements in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452968#M114373</link>
    <description>Sorry.&lt;BR /&gt;I have 2 macros that creating 2 types of output tables.&lt;BR /&gt;I run these macros for 2 populations&lt;BR /&gt;(Symboled by a and b)</description>
    <pubDate>Tue, 10 Apr 2018 21:28:12 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2018-04-10T21:28:12Z</dc:date>
    <item>
      <title>Export to excel  with special requirements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452965#M114371</link>
      <description>Hello&lt;BR /&gt;I have 3 macros that creating 3 types of output tables.&lt;BR /&gt;I run these macros for 2 populations&lt;BR /&gt;(Symboled by and b)&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Step1;Macro1 on population a.&lt;BR /&gt;Create 6 tables for population a.&lt;BR /&gt;Names of tables:&lt;BR /&gt;Tbl_1_1_a Tbl_1_2_a Tbl_1_3_a&lt;BR /&gt;Tbl_1_4_a Tbl_1_5_a Tbl_1_6_a&lt;BR /&gt;&lt;BR /&gt;Step2;Macro2 on population a.&lt;BR /&gt;Create 3 tables for population a.&lt;BR /&gt;Names of tables:&lt;BR /&gt;Tbl_2_1_a Tbl_2_2_a Tbl_2_3_a&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Step3;Macro1 on population b.&lt;BR /&gt;Create 6 tables for population b.&lt;BR /&gt;Names of tables:&lt;BR /&gt;Tbl_1_1_b Tbl_1_2_b Tbl_1_3_b&lt;BR /&gt;Tbl_1_4_b Tbl_1_5_b Tbl_1_6_b&lt;BR /&gt;&lt;BR /&gt;Step4;Macro2 on population b.&lt;BR /&gt;Create 3 tables for population b.&lt;BR /&gt;Names of tables:&lt;BR /&gt;Tbl_2_1_b Tbl_2_2_b Tbl_2_3_b&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Step5-Here is my question.&lt;BR /&gt;I want to export the table to one excel file with following requirements:&lt;BR /&gt;Name of sheet1 will be output1.&lt;BR /&gt;In sheet1 there will be tables Tbl_1_1_a Tbl_1_2_a Tbl_1_3_a&lt;BR /&gt;Tbl_1_4_a Tbl_1_5_a Tbl_1_6_a&lt;BR /&gt;down each other&lt;BR /&gt;and parallel to them will be tables&lt;BR /&gt;Tbl_1_1_b Tbl_1_2_b Tbl_1_3_b&lt;BR /&gt;Tbl_1_4_b Tbl_1_5_b Tbl_1_6_b&lt;BR /&gt;also down each other .&lt;BR /&gt;&lt;BR /&gt;Name of sheet2 will be output2.&lt;BR /&gt;In sheet2 there will be tables&lt;BR /&gt;Tbl_2_1_a Tbl_2_2_a Tbl_2_3_a down each other&lt;BR /&gt;And parallel to them will be tables&lt;BR /&gt;Tbl_2_1_b Tbl_2_2_b Tbl_2_3_b&lt;BR /&gt;Can anyone send a code that can do step5 of export to excel??&lt;BR /&gt;I dont have any requirement regarding colors and styles of tables .&lt;BR /&gt;&lt;BR /&gt;Thank you so much&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 10 Apr 2018 21:27:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452965#M114371</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-04-10T21:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel  with special requirements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452968#M114373</link>
      <description>Sorry.&lt;BR /&gt;I have 2 macros that creating 2 types of output tables.&lt;BR /&gt;I run these macros for 2 populations&lt;BR /&gt;(Symboled by a and b)</description>
      <pubDate>Tue, 10 Apr 2018 21:28:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452968#M114373</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-04-10T21:28:12Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel  with special requirements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452973#M114376</link>
      <description>&lt;P&gt;AFAIK there isn't an easy way to do this at this point of time - which is why you've asked the same question three times and not received a response. The closest option that I'm aware of uses ODS HTML, but that will not generate a native Excel file and does not support multiple sheets easily.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;The other two options, the custom macro written by some users here and/or DDE. Those are the order I'd suggest those in as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export" target="_blank"&gt;http://www.sascommunity.org/wiki/A_Poor/Rich_SAS_Users_Proc_Export&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Given your post, the macro above seems like your best option.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Good Luck.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Apr 2018 21:46:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452973#M114376</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-10T21:46:54Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel  with special requirements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452980#M114378</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159549"&gt;@Ronein&lt;/a&gt;: I agree with&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;, but suggest that you use the most recent version of that macro. You can find it at:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/FriedEgg/Papers/tree/master/Excelling_to_Another_Level_with_SAS" target="_blank"&gt;https://github.com/FriedEgg/Papers/tree/master/Excelling_to_Another_Level_with_SAS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Note: Corrected link. Code is under SRC, while all documentation is under doc&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 14:11:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/452980#M114378</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-04-11T14:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel  with special requirements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/453058#M114417</link>
      <description>Hi Reeeza&lt;BR /&gt;Thanks for your reply.&lt;BR /&gt;I opened the link you sent but can't see there any code.&lt;BR /&gt;Can you please tell me where to go in this link ?</description>
      <pubDate>Wed, 11 Apr 2018 04:15:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/453058#M114417</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-04-11T04:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel  with special requirements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/453059#M114418</link>
      <description>Hi art297&lt;BR /&gt;Thank you very much.&lt;BR /&gt;Can you tell me please which file to open in your link ?</description>
      <pubDate>Wed, 11 Apr 2018 04:16:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/453059#M114418</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-04-11T04:16:43Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel  with special requirements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/453184#M114485</link>
      <description>&lt;P&gt;Oops! The code obviously wasn't downloaded as yet to the github page, and the page owner is currently at SGF. As such, here is where you can get it:&amp;nbsp;&lt;A href="http://www.sascommunity.org/wiki/Excelling_to_Another_Level_with_SAS" target="_blank"&gt;http://www.sascommunity.org/wiki/Excelling_to_Another_Level_with_SAS&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Art, CEO, AnalystFinder.com&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Apr 2018 12:58:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/453184#M114485</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2018-04-11T12:58:56Z</dc:date>
    </item>
    <item>
      <title>Re: Export to excel  with special requirements</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/532126#M145770</link>
      <description>&lt;P&gt;Nifty macro. I note that it only works for Windows. If you have SAS on&amp;nbsp;a non-windows operating system, you could create your own macro as we did. It uses SAS IML to interface with R (pass SAS data sets and R code) to call 3rd party R packages (either openxlsx or xlConnect) to allow us to write to cells without having to pre-specify ranges in advance. It also allows us to use pre-specified excel templates with formatting and whatnot applied.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Feb 2019 17:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-to-excel-with-special-requirements/m-p/532126#M145770</guid>
      <dc:creator>DWilson</dc:creator>
      <dc:date>2019-02-01T17:53:04Z</dc:date>
    </item>
  </channel>
</rss>

