<?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 SAS9.4M4  ODS Excel problem multiple sheets in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS9-4M4-ODS-Excel-problem-multiple-sheets/m-p/466571#M21018</link>
    <description>&lt;P&gt;We have an existing job running via Unix batch that utilizes ODS Excel.&amp;nbsp; Prior to our conversion to SAS 9.4M4 the following code put the proc report output and the proc gplot on the same tab.&amp;nbsp; We create multiple tabs&amp;nbsp; (ALL, MC, PL)&amp;nbsp;&amp;nbsp; Prior to the conversion, the following code did this perfectly, now&amp;nbsp; all the data is in one tab.&amp;nbsp; I have reviewed all the OPTIONS for ODS Excel and I can find a reason for this.&amp;nbsp; Appreciate any help you can provide.&amp;nbsp;&amp;nbsp; Additionally, when this code runs in SAS EG, multiple tabs are created.&amp;nbsp; When we run via batch submit, we get one tab only&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel file="filename..xls" style=normal;&lt;/P&gt;&lt;P&gt;ods noproctitle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro doit(sheetname);　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;ods excel options(embedded_titles='yes'&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;sheet_interval="none"&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;sheet_name = "&amp;amp;sheetname"&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;absolute_column_width='10,10,5');&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;proc tabulate data=all_months out=auths;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;class disposition reason rar_transaction_date;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;var authorizations;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;table disposition*reason*(n='#'*f=comma12. colpctn='%'*f=5.2) (all='Total'*f=comma12.),&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;authorizations * rar_transaction_date=' ';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / height=500 width=2000 ;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;ods listing gpath="%sysfunc(getoption(work))";&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;GOPTIONS device=ACTXIMG;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;proc sgplot data=graph1;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;title "Unit Rate";&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;vline rar_transaction_date / response=unit_rate ;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;XAXIS label = 'Date';&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;YAXIS label = 'Unit Rate' GRID min=0;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%doit(All,);&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;%doit(MC);&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;%doit(PL);&lt;/P&gt;</description>
    <pubDate>Thu, 31 May 2018 18:07:18 GMT</pubDate>
    <dc:creator>JCool42</dc:creator>
    <dc:date>2018-05-31T18:07:18Z</dc:date>
    <item>
      <title>SAS9.4M4  ODS Excel problem multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS9-4M4-ODS-Excel-problem-multiple-sheets/m-p/466571#M21018</link>
      <description>&lt;P&gt;We have an existing job running via Unix batch that utilizes ODS Excel.&amp;nbsp; Prior to our conversion to SAS 9.4M4 the following code put the proc report output and the proc gplot on the same tab.&amp;nbsp; We create multiple tabs&amp;nbsp; (ALL, MC, PL)&amp;nbsp;&amp;nbsp; Prior to the conversion, the following code did this perfectly, now&amp;nbsp; all the data is in one tab.&amp;nbsp; I have reviewed all the OPTIONS for ODS Excel and I can find a reason for this.&amp;nbsp; Appreciate any help you can provide.&amp;nbsp;&amp;nbsp; Additionally, when this code runs in SAS EG, multiple tabs are created.&amp;nbsp; When we run via batch submit, we get one tab only&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods excel file="filename..xls" style=normal;&lt;/P&gt;&lt;P&gt;ods noproctitle;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro doit(sheetname);　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;ods excel options(embedded_titles='yes'&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;sheet_interval="none"&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;sheet_name = "&amp;amp;sheetname"&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;absolute_column_width='10,10,5');&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;proc tabulate data=all_months out=auths;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;class disposition reason rar_transaction_date;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;var authorizations;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;table disposition*reason*(n='#'*f=comma12. colpctn='%'*f=5.2) (all='Total'*f=comma12.),&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;authorizations * rar_transaction_date=' ';&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ods graphics / height=500 width=2000 ;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;ods listing gpath="%sysfunc(getoption(work))";&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;GOPTIONS device=ACTXIMG;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;proc sgplot data=graph1;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;title "Unit Rate";&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;vline rar_transaction_date / response=unit_rate ;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;XAXIS label = 'Date';&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;YAXIS label = 'Unit Rate' GRID min=0;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%doit(All,);&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;%doit(MC);&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;%doit(PL);&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 18:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS9-4M4-ODS-Excel-problem-multiple-sheets/m-p/466571#M21018</guid>
      <dc:creator>JCool42</dc:creator>
      <dc:date>2018-05-31T18:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS9.4M4  ODS Excel problem multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS9-4M4-ODS-Excel-problem-multiple-sheets/m-p/466609#M21020</link>
      <description>Shot in the dark here but I found that OPTION ValidVarName defaults are different between Base SAS and SEG.  SAS uses 'V7' which replaces spaces and non-SAS characters with underscores versus 'ANY' in SEG with puts the name in quotes and adds an 'n' to the end.  For example, 'Variable Name' would be read as Variable_Name by base SAS but 'Variable Name'n by SEG.  I suspect that your culprit is in general SAS options rather than ODS Excel options.</description>
      <pubDate>Thu, 31 May 2018 19:37:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS9-4M4-ODS-Excel-problem-multiple-sheets/m-p/466609#M21020</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2018-05-31T19:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAS9.4M4  ODS Excel problem multiple sheets</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS9-4M4-ODS-Excel-problem-multiple-sheets/m-p/466650#M21021</link>
      <description>&lt;P&gt;Also, and this is minor, but could cause issues. When you use ODS EXCEL, the valid file extension is .XLSX (not .xls as your show). You should be getting a Microsoft warning window with .XLS as the file extension. Also GOPTIONS should not have an impact on PROC SGPLOT -- you should put your imagefmt= option in the ODS GRAPHICS statement.&lt;BR /&gt;&lt;BR /&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Thu, 31 May 2018 22:07:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS9-4M4-ODS-Excel-problem-multiple-sheets/m-p/466650#M21021</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-05-31T22:07:13Z</dc:date>
    </item>
  </channel>
</rss>

