<?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: Creating an Excel file in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558423#M7542</link>
    <description>&lt;P&gt;First example in the documentation covers this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically for your issue - I think your name is too long so SAS ends up truncating it - limit on worksheet name in Excel is 30 characters. The examples you've shown would fit 30 but not all would.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods EXCEL FILE = "/home/xxxxxx/Demo1/report.xlsx"
options(sheet_interval="bygroup"
           suppress_bylines="yes"
           sheet_label="Report for Jan 2011"
           embedded_titles="yes"
           embed_titles_once="yes" );


proc report data=sashelp.cars;
by make;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This gets you pretty close.&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/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am creating a file&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods EXCEL FILE = "/user/kajal30/report.xlsx"&lt;BR /&gt;options (sheet_interval = 'bygroup'&lt;BR /&gt;sheet_label = 'origin');&lt;BR /&gt;proc report data=sashelp.cars;&lt;BR /&gt;by make;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I need an excel sheet with multiple tabs ( each tab for diff make ) and name them as&amp;nbsp;&lt;STRONG&gt;year_report_for_jan2011_honda, year_report_for_jan2011_acura, year_report_for_jan2011_tesla ........ and so on.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 May 2019 18:56:13 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2019-05-13T18:56:13Z</dc:date>
    <item>
      <title>Creating an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558304#M7534</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying creating an excel file with three tabs after an extract transformation.Can anyone help me with the transformation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kajal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 13:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558304#M7534</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2019-05-13T13:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558343#M7539</link>
      <description>&lt;P&gt;ODS EXCEL or PROC EXPORT are the methods for creating an Excel file. Both have examples in the documentation.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Vague questions get vague answers, if you need more assistance please provide more details.&amp;nbsp;&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/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying creating an excel file with three tabs after an extract transformation.Can anyone help me with the transformation.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Kajal&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>Mon, 13 May 2019 15:48:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558343#M7539</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-13T15:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558413#M7540</link>
      <description>&lt;P&gt;I am creating a file&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods EXCEL FILE = "/user/kajal30/report.xlsx"&lt;BR /&gt;options (sheet_interval = 'bygroup'&lt;BR /&gt;sheet_label = 'origin');&lt;BR /&gt;proc report data=sashelp.cars;&lt;BR /&gt;by make;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here I need an excel sheet with multiple tabs ( each tab for diff make ) and name them as&amp;nbsp;&lt;STRONG&gt;year_report_for_jan2011_honda, year_report_for_jan2011_acura, year_report_for_jan2011_tesla ........ and so on.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:25:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558413#M7540</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2019-05-13T18:25:32Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558423#M7542</link>
      <description>&lt;P&gt;First example in the documentation covers this:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en"&gt;https://documentation.sas.com/?docsetId=odsug&amp;amp;docsetTarget=p09n5pw9ol0897n1qe04zeur27rv.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Specifically for your issue - I think your name is too long so SAS ends up truncating it - limit on worksheet name in Excel is 30 characters. The examples you've shown would fit 30 but not all would.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
ods EXCEL FILE = "/home/xxxxxx/Demo1/report.xlsx"
options(sheet_interval="bygroup"
           suppress_bylines="yes"
           sheet_label="Report for Jan 2011"
           embedded_titles="yes"
           embed_titles_once="yes" );


proc report data=sashelp.cars;
by make;
run;

ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This gets you pretty close.&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/259983"&gt;@kajal_30&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I am creating a file&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods EXCEL FILE = "/user/kajal30/report.xlsx"&lt;BR /&gt;options (sheet_interval = 'bygroup'&lt;BR /&gt;sheet_label = 'origin');&lt;BR /&gt;proc report data=sashelp.cars;&lt;BR /&gt;by make;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here I need an excel sheet with multiple tabs ( each tab for diff make ) and name them as&amp;nbsp;&lt;STRONG&gt;year_report_for_jan2011_honda, year_report_for_jan2011_acura, year_report_for_jan2011_tesla ........ and so on.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 18:56:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/558423#M7542</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2019-05-13T18:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an Excel file</title>
      <link>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/559650#M7569</link>
      <description>&lt;P&gt;Thank you so much&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 12:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/Creating-an-Excel-file/m-p/559650#M7569</guid>
      <dc:creator>kajal_30</dc:creator>
      <dc:date>2019-05-17T12:52:40Z</dc:date>
    </item>
  </channel>
</rss>

