<?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 one data set into one XLSX file with multiple sheets-Automat BY in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747161#M234458</link>
    <description>&lt;P&gt;OPTION NOBYLINES will suppress the BY Group title.&amp;nbsp; Once you remove that title, the table should start in cell A1. Try it and see if that's what you need.&amp;nbsp; I think that's what you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding not having anything go to the SAS results window, try&amp;nbsp;ODS NORESULTS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 10 Jun 2021 17:33:10 GMT</pubDate>
    <dc:creator>jimbarbour</dc:creator>
    <dc:date>2021-06-10T17:33:10Z</dc:date>
    <item>
      <title>Export one data set into one XLSX file with multiple sheets-Automat BY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/746983#M234409</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to export SAS data set into one XLSX file with multiple sheets.&lt;/P&gt;
&lt;P&gt;I need to make some changes:&lt;/P&gt;
&lt;P&gt;1-The sheets names now are: ByGroup 1 - Asia ,ByGroup 2 - Europe ,ByGroup 3 - USA&lt;BR /&gt;What is the way to create sheets names:Asia,Europe,USA?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;2-Now the table start in each XLSX file in row 3 and in row 1 there is a title .&lt;/P&gt;
&lt;P&gt;What is the way that table start in cell A1 and have no title?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3-I dont want to print on screen because in real life tables will be very big&lt;/P&gt;
&lt;P&gt;what is the way to prevent prints on screen&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data cars;
set sashelp.cars;
label make='Firma' mode='model name' type='type of car';
Run;

proc sort data=cars ;by origin;run;


ods excel file="/path/eee.xlsx"
options(sheet_interval='bygroup');
proc print data=cars label noobs;
by origin;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 11:25:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/746983#M234409</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-06-10T11:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export one data set into one XLSX file with multiple sheets-Automat BY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747067#M234446</link>
      <description>&lt;P&gt;Hmmm.&amp;nbsp; Well, that's a bit tricky.&amp;nbsp; I know how to assign a sheet name in the options, but I'm not sure how it would work with an interval.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how you would specify what the sheet name should be:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS	Excel	OPTIONS(Sheet_Name	=	"Asia");&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Play with that a bit, and let me think about this some more.&amp;nbsp; Also, perhaps someone else may have a good idea here.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 15:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747067#M234446</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-10T15:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export one data set into one XLSX file with multiple sheets-Automat BY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747102#M234449</link>
      <description>&lt;P&gt;OK, here you go.&amp;nbsp; The code below will do what you want.&amp;nbsp; What I've done is added&amp;nbsp;&lt;/P&gt;
&lt;P&gt;sheet_name='#byval1'&lt;/P&gt;
&lt;P&gt;to the Options.&amp;nbsp; Give it a try.&amp;nbsp; It's working on my system.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way, you have a typo in your Label statement in your Data step; "mode" should be "model".&amp;nbsp; The correct code is shown below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data cars;
set sashelp.cars;
label make='Firma' model='model name' type='type of car';
Run;

proc sort data=cars ;by origin;run;

ods excel file="C:\Users\jbarbour\Documents\SAS\Pgm\Training\Excel_By_Group_Names\Cars_By_Origin.xlsx"
options(sheet_interval='bygroup' sheet_name='#byval1');

proc print data=cars label noobs;
by origin;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jun 2021 16:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747102#M234449</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-10T16:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Export one data set into one XLSX file with multiple sheets-Automat BY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747130#M234450</link>
      <description>Thank you,&lt;BR /&gt;What abut the 2 other requests:&lt;BR /&gt;1-Data will be presewnted in XLSA sheet from cell A1 (Currently It start in row 3 in cell C1)&lt;BR /&gt;2-Data will be presented without title. Currently in First row of each XLSX sheet there is a title &lt;BR /&gt;3-I dont want to see print in SAS window table because in real life the cars data set is very big &lt;BR /&gt;May you show please the way to apply these 3 requests? thanks J</description>
      <pubDate>Thu, 10 Jun 2021 16:42:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747130#M234450</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2021-06-10T16:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export one data set into one XLSX file with multiple sheets-Automat BY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747161#M234458</link>
      <description>&lt;P&gt;OPTION NOBYLINES will suppress the BY Group title.&amp;nbsp; Once you remove that title, the table should start in cell A1. Try it and see if that's what you need.&amp;nbsp; I think that's what you mean.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regarding not having anything go to the SAS results window, try&amp;nbsp;ODS NORESULTS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Jun 2021 17:33:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747161#M234458</guid>
      <dc:creator>jimbarbour</dc:creator>
      <dc:date>2021-06-10T17:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Export one data set into one XLSX file with multiple sheets-Automat BY</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747163#M234460</link>
      <description>&lt;P&gt;Turn off the title in your SAS code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Turn off HTML (or other output destination)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 10 Jun 2021 17:46:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Export-one-data-set-into-one-XLSX-file-with-multiple-sheets/m-p/747163#M234460</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2021-06-10T17:46:25Z</dc:date>
    </item>
  </channel>
</rss>

