<?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: How to create multiple excel graph sheets in one workbook  using proc sgplot in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-excel-graph-sheets-in-one-workbook-using/m-p/867963#M342809</link>
    <description>&lt;P&gt;Maybe this will help:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = sashelp.cars out = cars;
  by Origin;
run;

ods excel file="R:\text.xlsx"
GFOOTNOTE
GTITLE
options(SHEET_INTERVAL='NONE') /* prevent by group sheet break*/
;
options nobyline;

title1 j=c height=1 font="Courier New" 
  "Title Origin: #byval(Origin).."
;
footnote1 j=c height=1 font="Courier New" 
  "Footnote Origin: #byval(Origin).."
;
proc sgplot data=cars;
  by Origin;
  scatter x=Invoice y=MSRP;
run;


ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2023 12:00:04 GMT</pubDate>
    <dc:creator>yabwon</dc:creator>
    <dc:date>2023-04-04T12:00:04Z</dc:date>
    <item>
      <title>How to create multiple excel graph sheets in one workbook  using proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-excel-graph-sheets-in-one-workbook-using/m-p/867930#M342795</link>
      <description>&lt;P&gt;Good day&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to create multiple sheets using ods excel in proc sgplot. The code is as follows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%Let Dated = '10Feb2023'd;&lt;BR /&gt;%let date1=%sysfunc(today(),date9.);&lt;BR /&gt;%Let reports = &amp;lt;path&amp;gt;;&lt;BR /&gt;ods _all_ close;&lt;BR /&gt;ODS excel FILE = "&amp;amp;reports\Blending &amp;amp;date1 .xlsx";&lt;BR /&gt;OPTIONS PAGESIZE=MAX ORIENTATION=LANDSCAPE;&lt;BR /&gt;ods graphics on / width=11in height=6in noscale;&lt;/P&gt;
&lt;P&gt;ods excel options(autofilter="ALL" sheet_name = "Parameter " embedded_titles='yes');&lt;BR /&gt;proc sgplot data=tested (where=(NAME='Parameter' ));&lt;BR /&gt;vline dates / response=NUMERIC_ENTRY group=sampling_point groupdisplay=cluster ;&lt;BR /&gt;yaxis values=(0 to 200 by 20) label='Parameter' grid LABELATTRS=(weight=bold family=Helvetica size=7)&lt;BR /&gt;VALUEATTRS=(family=Helvetica size=7 style=normal weight=normal ) ;&lt;/P&gt;
&lt;P&gt;refline &amp;amp;Parameter / axis=y label=('Units') lineattrs=(color=green pattern=dash) labelattrs=(size=7) labelloc=inside;&lt;BR /&gt;refline &amp;amp;Dated / axis=x label=('Blending date') lineattrs=(color=red pattern=dash) labelattrs=(size=7) labelloc=inside;&lt;BR /&gt;xaxis interval=day VALUESROTATE=VERTICAL&lt;BR /&gt;label='Sampled dates' LABELATTRS=(weight=bold size=7) valuesrotate=vertical &lt;BR /&gt;VALUEATTRS=(family=arial size=10 style=normal weight=normal )&lt;BR /&gt;type=time ;&lt;BR /&gt;title1 j=c "Parameter trend" bold;&lt;BR /&gt;run;&lt;BR /&gt;ods _all_ close;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My challenge is that I could only create 8 excel sheets using the above code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a way of getting more sheets on the one workbook? I need close to 70 work sheets on one workbook.&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 08:11:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-excel-graph-sheets-in-one-workbook-using/m-p/867930#M342795</guid>
      <dc:creator>mmohotsi</dc:creator>
      <dc:date>2023-04-04T08:11:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple excel graph sheets in one workbook  using proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-excel-graph-sheets-in-one-workbook-using/m-p/867963#M342809</link>
      <description>&lt;P&gt;Maybe this will help:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sort data = sashelp.cars out = cars;
  by Origin;
run;

ods excel file="R:\text.xlsx"
GFOOTNOTE
GTITLE
options(SHEET_INTERVAL='NONE') /* prevent by group sheet break*/
;
options nobyline;

title1 j=c height=1 font="Courier New" 
  "Title Origin: #byval(Origin).."
;
footnote1 j=c height=1 font="Courier New" 
  "Footnote Origin: #byval(Origin).."
;
proc sgplot data=cars;
  by Origin;
  scatter x=Invoice y=MSRP;
run;


ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Bart&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 12:00:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-excel-graph-sheets-in-one-workbook-using/m-p/867963#M342809</guid>
      <dc:creator>yabwon</dc:creator>
      <dc:date>2023-04-04T12:00:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to create multiple excel graph sheets in one workbook  using proc sgplot</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-excel-graph-sheets-in-one-workbook-using/m-p/867975#M342816</link>
      <description>&lt;P&gt;I don't see how the code you present will produce more than 1 plot, but you say it works for up to 8 plots, but not more??? How does this code produce 8 plots? What happens when you ask for more than 8 plots, is there an error in the log? If so, please show us the ENTIRE log for this ODS EXCEL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, please try it with&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel options(sheet_interval='PROC');&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods excel options(sheet_interval='PAGE');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 04 Apr 2023 13:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-multiple-excel-graph-sheets-in-one-workbook-using/m-p/867975#M342816</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-04-04T13:17:09Z</dc:date>
    </item>
  </channel>
</rss>

