<?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 Different data sets in multiple excel sheet in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747896#M25063</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have multiple result sets that I saved using OneWayFreqs and I want to export them to one excel file with multiple sheets. Could you help me with that?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 14 Jun 2021 18:02:15 GMT</pubDate>
    <dc:creator>dustychair</dc:creator>
    <dc:date>2021-06-14T18:02:15Z</dc:date>
    <item>
      <title>Different data sets in multiple excel sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747896#M25063</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have multiple result sets that I saved using OneWayFreqs and I want to export them to one excel file with multiple sheets. Could you help me with that?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 18:02:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747896#M25063</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-06-14T18:02:15Z</dc:date>
    </item>
    <item>
      <title>Re: Different data sets in multiple excel sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747914#M25064</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Before I give you a solution I just want to make sure that I understand your problem. So your results sets are stored in multiple dataset or in one?&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 18:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747914#M25064</guid>
      <dc:creator>Athenkosi</dc:creator>
      <dc:date>2021-06-14T18:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: Different data sets in multiple excel sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747916#M25065</link>
      <description>Results are saved in multiple datasets.</description>
      <pubDate>Mon, 14 Jun 2021 18:59:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747916#M25065</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-06-14T18:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: Different data sets in multiple excel sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747917#M25066</link>
      <description>&lt;P&gt;Quickest way is to wrap your code in ODS EXCEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel file="/home/reeza/demo/myfiles.xlsx" options(sheet_interval='proc') style=meadow;

proc freq data=sashelp.class;
table sex*age;
run;

proc freq data=sashelp.cars;
table origin*cylinders;
run;

ods excel close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/22174"&gt;@dustychair&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;I have multiple result sets that I saved using OneWayFreqs and I want to export them to one excel file with multiple sheets. Could you help me with that?&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 19:01:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747917#M25066</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-14T19:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: Different data sets in multiple excel sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747989#M25072</link>
      <description>&lt;P&gt;Thank you so much for taking care of my question. This code is doing something weird. It is saving them in the excel file but the name of the file and content of the file doesn't match. For example file's name is comprehension but there are literacy results inside. You can find what I have done.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%macro intd (s);&lt;BR /&gt;ods excel file="C:\Projects\pl_by_cluster_&amp;amp;s..xlsx" options(sheet_interval='proc') style=meadow;&lt;/P&gt;
&lt;P&gt;data a501_&amp;amp;s._main_inc;&lt;BR /&gt;set a501_&amp;amp;s._main_inc;&lt;BR /&gt;&amp;amp;s._pl_n=int(&amp;amp;s._pl);&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc sort data=a501_&amp;amp;s._main_inc;&lt;BR /&gt;by cluster_&amp;amp;s._n;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc freq data=a501_&amp;amp;s._main_inc;&lt;BR /&gt;table &amp;amp;s._pl_n;&lt;BR /&gt;by cluster_&amp;amp;s._n;&lt;BR /&gt;ods output OneWayFreqs=pl_by_cluster_&amp;amp;s.&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc sort data=a501_&amp;amp;s._main_inc;&lt;BR /&gt;by grade;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;proc freq data=a501_&amp;amp;s._main_inc;&lt;BR /&gt;table &amp;amp;s._pl_n;&lt;BR /&gt;by grade;&lt;BR /&gt;ods output OneWayFreqs=pl_by_grade_&amp;amp;s.&lt;BR /&gt;run;&lt;BR /&gt;ods excel close;&lt;BR /&gt;%mend;&lt;BR /&gt;%intd (comprehension);&lt;BR /&gt;%intd (listening);&lt;BR /&gt;%intd (reading);&lt;BR /&gt;%intd (speaking);&lt;BR /&gt;%intd (writing);&lt;BR /&gt;%intd (oral);&lt;BR /&gt;%intd (literacy);&lt;BR /&gt;%intd (comprehension);&lt;BR /&gt;%intd (overall);&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jun 2021 23:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/747989#M25072</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-06-14T23:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: Different data sets in multiple excel sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/748132#M25080</link>
      <description>You have comprehension listed twice....&lt;BR /&gt;Run the macro with "options mprint symbolgen;"  before the code and then check your log. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2021 14:28:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/748132#M25080</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-15T14:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Different data sets in multiple excel sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/748173#M25081</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;Thank you so much! I noticed that I missed two semicolons besides writing Comprehension twice. Last question: how can make percentages one digit instead of two using ods excel?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jun 2021 16:56:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/748173#M25081</guid>
      <dc:creator>dustychair</dc:creator>
      <dc:date>2021-06-15T16:56:51Z</dc:date>
    </item>
    <item>
      <title>Re: Different data sets in multiple excel sheet</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/748181#M25082</link>
      <description>PROC FREQ doesn't let you control that unfortunately. If you want to control your output you can switch to PROC TABULATE instead - but that also means you need to specify more options to get the same output. &lt;BR /&gt;</description>
      <pubDate>Tue, 15 Jun 2021 17:15:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-data-sets-in-multiple-excel-sheet/m-p/748181#M25082</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2021-06-15T17:15:30Z</dc:date>
    </item>
  </channel>
</rss>

