<?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: ODS EXCEL in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522657#M4465</link>
    <description>How can I export the results into one single excel sheet instead of individual tabs</description>
    <pubDate>Wed, 19 Dec 2018 17:58:43 GMT</pubDate>
    <dc:creator>lewisnovack</dc:creator>
    <dc:date>2018-12-19T17:58:43Z</dc:date>
    <item>
      <title>ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522637#M4463</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am running 20 simulations that return 1 line of information each. I am looking at taking these line (that returns in a separate tab of excel) and automatically exporting them into one excel document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currenlty I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ODS EXCEL FILE=" C:\Users\len676\Desktop\Simulation_Novack\Log[x]\A_log_gamma_results.xls"&amp;nbsp; /*style=normal*/;&lt;BR /&gt;ODS EXCEL options ( sheet_name="result 1");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS EXCEL options ( sheet_name="Result_2");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print data=MM.RESULT_2 NOOBS label ;run;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ODS EXCEL options ( sheet_name="Result_3");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;proc print data=MM.RESULT_3 NOOBS label;run;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS EXCEL options ( sheet_name="Result_4");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print data=MM.RESULT_4 NOOBS label ;run;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ODS EXCEL options ( sheet_name="Result_5");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;proc print data=MM.RESULT_5 NOOBS label;run;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS EXCEL options ( sheet_name="Result_6");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print data=MM.RESULT_6 NOOBS label ;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(this countinues to RESULT_20)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc print data=RESULT_2 NOOBS label ;run;&lt;BR /&gt;ODS EXCEL CLOSE;&lt;BR /&gt;ODS LISTING;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 17:18:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522637#M4463</guid>
      <dc:creator>lewisnovack</dc:creator>
      <dc:date>2018-12-19T17:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522642#M4464</link>
      <description>&lt;P&gt;ODS Excel should use an XLSX file extension. And you didn't actually ask any question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/251971"&gt;@lewisnovack&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am running 20 simulations that return 1 line of information each. I am looking at taking these line (that returns in a separate tab of excel) and automatically exporting them into one excel document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Currenlty I have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ODS EXCEL FILE=" C:\Users\len676\Desktop\Simulation_Novack\Log[x]\A_log_gamma_results.xls"&amp;nbsp; /*style=normal*/;&lt;BR /&gt;ODS EXCEL options ( sheet_name="result 1");&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS EXCEL options ( sheet_name="Result_2");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print data=MM.RESULT_2 NOOBS label ;run;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ODS EXCEL options ( sheet_name="Result_3");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;proc print data=MM.RESULT_3 NOOBS label;run;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS EXCEL options ( sheet_name="Result_4");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print data=MM.RESULT_4 NOOBS label ;run;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;ODS EXCEL options ( sheet_name="Result_5");&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;proc print data=MM.RESULT_5 NOOBS label;run;&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ODS EXCEL options ( sheet_name="Result_6");&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc print data=MM.RESULT_6 NOOBS label ;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(this countinues to RESULT_20)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc print data=RESULT_2 NOOBS label ;run;&lt;BR /&gt;ODS EXCEL CLOSE;&lt;BR /&gt;ODS LISTING;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 17:30:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522642#M4464</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-19T17:30:01Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522657#M4465</link>
      <description>How can I export the results into one single excel sheet instead of individual tabs</description>
      <pubDate>Wed, 19 Dec 2018 17:58:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522657#M4465</guid>
      <dc:creator>lewisnovack</dc:creator>
      <dc:date>2018-12-19T17:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522658#M4466</link>
      <description>&lt;P&gt;I would probably recommend combining your data and doing a single PROC PRINT then.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This would combine it into one table, Results_All. Then use the approach above to print out this table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data Results_All;
set MM.RESULT_1 - mm.result_20;
run;

&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Another option is to set sheet_interval to none, which means all output goes to one file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file=' path to xlsx file' options(sheet_interval='none');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/251971"&gt;@lewisnovack&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;How can I export the results into one single excel sheet instead of individual tabs&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 18:02:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522658#M4466</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-12-19T18:02:58Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522698#M4482</link>
      <description>&lt;P&gt;Thank you, unfortunately, it does not work here. It still displays in individual tabs within the excel document.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 20:55:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522698#M4482</guid>
      <dc:creator>lewisnovack</dc:creator>
      <dc:date>2018-12-19T20:55:18Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522706#M4484</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/251971"&gt;@lewisnovack&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Thank you, unfortunately, it does not work here. It still displays in individual tabs within the excel document.&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You might show the actual code you ran from the ODS destination statement to the close. And if you did not close the original spreadsheet you may not have actually written a new one. Check the log for any warnings or errors. If you got any then post them along with the code.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Dec 2018 21:19:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522706#M4484</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-12-19T21:19:43Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522846#M4527</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;PROC APPEND or the DATA step code that&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;posted should create a SAS table with all of the data.&amp;nbsp; Then use PROC PRINT&amp;nbsp;with the final table.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc append base=work.alldata data=mm.result_1; run; quit;
proc append base=work.alldata data=mm.result_2; run; quit;
proc append base=work.alldata data=mm.result_3; run; quit;
proc append base=work.alldata data=mm.result_4; run; quit;
proc append base=work.alldata data=mm.result_5; run; quit;
(this countinues to RESULT_20)

ods Excel file='C:\Users\len676\Desktop\Simulation_Novack\Log[x]\A_log_gamma_results.xlsx'
  options(sheet_name='All Data');

proc print data=work.alldata noobs label; run; quit;

ods Excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Dec 2018 13:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/522846#M4527</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-12-20T13:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/530694#M5789</link>
      <description>&lt;P&gt;Is there a way to do this without naming each data set individually. Can this be done automatically to any data set containing MM.Result_&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jan 2019 17:56:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/530694#M5789</guid>
      <dc:creator>lewisnovack</dc:creator>
      <dc:date>2019-01-28T17:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: ODS EXCEL</title>
      <link>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/530769#M5802</link>
      <description>Sure, just stack them that way.&lt;BR /&gt;&lt;BR /&gt;data want;&lt;BR /&gt;set mm.result_: ;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 28 Jan 2019 20:38:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/ODS-EXCEL/m-p/530769#M5802</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-01-28T20:38:23Z</dc:date>
    </item>
  </channel>
</rss>

