<?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 do I output to an Excel workbook in specific locations (using ODS, Proc Report, Prog GCHART) in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978621#M378653</link>
    <description>&lt;P&gt;ODS Excel does not let you place two graphs side-by-side. It can only place two plots one above the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could get SAS two place two graphs side-by-side and then output this to an Excel sheet using ODS Excel, so they appear in Excel side by side. I have used SAS to put two graphs side by side, but I have not used ODS EXCEL to get the two graphs into Excel. See:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2022/07/13/ods-graphs-panel.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2022/07/13/ods-graphs-panel.html&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 10 Nov 2025 22:02:50 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2025-11-10T22:02:50Z</dc:date>
    <item>
      <title>How do I output to an Excel workbook in specific locations (using ODS, Proc Report, Prog GCHART)?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978618#M378650</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;Thanks so much for your help in the past. You really are the best-est!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Need your help once most to bring this project home. I need to output the following data (example used). First dataset goes on first sheet, but the graph has to go on the 2nd sheet . I'm also going to need to put another graph right next to it (that's why the repeating gchart code). But, I also need a bunch of proc report outputs (need to do highlighting, etc)&amp;nbsp; on the same sheet but starting in different locations. Here are my attempts but it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks so much!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;data example;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; set sashelp.cars (obs=10);&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;data test;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; input rating $ count;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; datalines;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Amber 1000&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Green 450&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; Red&amp;nbsp; &amp;nbsp;6445&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; ;&lt;/DIV&gt;
&lt;DIV&gt;run;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ods escapechar='^';&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ods excel file = '/home/mine/test_report.xlsx';&lt;/DIV&gt;
&lt;DIV&gt;ods excel options (sheet_name="First Sheet");&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;proc report data=example missing nowd;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; column model msrp invoice;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ods excel options (sheet_name="Second Sheet");&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ods graphics / reset&amp;nbsp; outputfmt=jpg;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pattern1 color= &amp;amp;amber.; /* Amber */&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pattern2 color= &amp;amp;green.;&amp;nbsp; /* Green */&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pattern3 color= &amp;amp;red.;&amp;nbsp; &amp;nbsp; /* Red */&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; proc gchart data=test;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; title "This is the first chart";&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; format count comma10.0;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pie rating /noheading&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; sumvar=count&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; value=arrow&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; plabel=(font = 'Times New Roman/bold' height = 13pt )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; percent=arrow;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; run;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;quit;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ods graphics / reset&amp;nbsp; outputfmt=jpg;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pattern1 color=&amp;nbsp; yellow;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pattern2 color= green;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pattern3 color= red;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; proc gchart data=test;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; title "This will be another chart but needs to be next to the first";&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; format count comma10.0;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; pie rating /noheading&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; sumvar=count&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; value=arrow&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; plabel=(font = 'Times New Roman/bold' height = 13pt )&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; percent=arrow;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt; run;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;quit;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ods excel options (sheet_interval='none' start_at="A43");&lt;/DIV&gt;
&lt;DIV&gt;proc report data=example missing nowd;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; columns model cylinders Horsepower;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ods excel options (sheet_interval='none' start_at="F43");&lt;/DIV&gt;
&lt;DIV&gt;proc report data=example missing nowd;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp; &amp;nbsp; columns model weight length;&lt;/DIV&gt;
&lt;DIV&gt;run;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;ods excel close;&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 21:34:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978618#M378650</guid>
      <dc:creator>SASGeek</dc:creator>
      <dc:date>2025-11-10T21:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output to an Excel workbook in specific locations (using ODS, Proc Report, Prog GCHART)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978621#M378653</link>
      <description>&lt;P&gt;ODS Excel does not let you place two graphs side-by-side. It can only place two plots one above the other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could get SAS two place two graphs side-by-side and then output this to an Excel sheet using ODS Excel, so they appear in Excel side by side. I have used SAS to put two graphs side by side, but I have not used ODS EXCEL to get the two graphs into Excel. See:&amp;nbsp;&lt;A href="https://blogs.sas.com/content/iml/2022/07/13/ods-graphs-panel.html" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/iml/2022/07/13/ods-graphs-panel.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 22:02:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978621#M378653</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-11-10T22:02:50Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output to an Excel workbook in specific locations (using ODS, Proc Report, Prog GCHART)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978651#M378666</link>
      <description>&lt;P&gt;You could make a picture to put these two graphs side by side and insert it into Excel by these two skills:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/graphicallyspeaking/2022/09/10/complex-layouts-using-the-sg-procedures/" target="_blank"&gt;https://blogs.sas.com/content/graphicallyspeaking/2022/09/10/complex-layouts-using-the-sg-procedures/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/02/20/tips-for-using-the-ods-excel-destination/" target="_blank"&gt;https://blogs.sas.com/content/sgf/2017/02/20/tips-for-using-the-ods-excel-destination/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
set sashelp.cars (obs=10); 
run;
 
data test;
    input rating $ count;
    datalines;
    Amber 1000
    Green 450
    Red   6445
    ;
run;


ods _all_ close;
options nodate nonumber;
options leftmargin="0.001in" rightmargin="0.001in";
options papersize=(7.35in 3.00in);

title;
ods printer printer=png300 file="%sysfunc(pathname(work))\dashboard.png" style=normalprinter;

ods layout gridded columns=2 advance=proc
    column_gutter=0.1in row_gutter=0.1in;

ods graphics / width=3.5in noborder;
title;
proc sgpie data=test;
donut rating / response=count holevalue datalabeldisplay=(percent)
               holelabel="Total Sales" datalabelloc=outside;
run;
proc sgpie data=test;
pie rating / response=count  datalabeldisplay=(percent)
                datalabelloc=inside;
run;
ods layout end;
ods printer close;






ods excel file="c:\temp\temp.xlsx" ;
ods excel options (sheet_name="First Sheet");
 
proc report data=example missing nowd;
column model msrp invoice;
run;
 
ods excel options (sheet_name="Second Sheet"  sheet_interval="none");
goptions iback="%sysfunc(pathname(work))\dashboard.png" imagestyle=fit vsize=3.00in hsize=7.35in;

proc gslide;
run;
 

ods excel options ( start_at="20,20");
proc report data=example missing nowd;
    columns model cylinders Horsepower;
run;
ods excel options (start_at="35,6");
proc report data=example missing nowd;
    columns model weight length;
run;
ods excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1762849076608.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/111232iCDAE437A711DBB03/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1762849076608.png" alt="Ksharp_0-1762849076608.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 08:18:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978651#M378666</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-11-11T08:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output to an Excel workbook in specific locations (using ODS, Proc Report, Prog GCHART)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978726#M378680</link>
      <description>&lt;P&gt;Good idea! Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any suggestions on how to output PROC REPORT to a specific cell? Couldn't find anything in the papers that I could get to work.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 13:42:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978726#M378680</guid>
      <dc:creator>SASGeek</dc:creator>
      <dc:date>2025-11-12T13:42:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output to an Excel workbook in specific locations (using ODS, Proc Report, Prog GCHART)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978728#M378681</link>
      <description>&lt;P&gt;Here is another blog that might be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/sgf/2019/04/23/ods-excel-control/" target="_self"&gt;https://blogs.sas.com/content/sgf/2019/04/23/ods-excel-control/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 14:10:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978728#M378681</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-11-12T14:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output to an Excel workbook in specific locations (using ODS, Proc Report, Prog GCHART)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978730#M378682</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93090"&gt;@SASGeek&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Any suggestions on how to output PROC REPORT to a specific cell?&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;This is not a capability of ODS EXCEL. Whatever you output via ODS Excel goes underneath&amp;nbsp; whatever has been previously output to that Excel worksheet (with a blank row in between the previous ODS Excel output and the new ODS Excel output). If nothing previously has been output to that Excel worksheet, then ODS Excel puts the output at the top left of the sheet.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 14:53:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978730#M378682</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-11-12T14:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: How do I output to an Excel workbook in specific locations (using ODS, Proc Report, Prog GCHART)</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978744#M378683</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/93090"&gt;@SASGeek&lt;/a&gt;&amp;nbsp;wrote:
&lt;P&gt;Any suggestions on how to output PROC REPORT to a specific cell?&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Perhaps you can fake this by having blank rows and columns in PROC REPORT (something I have never tried) so you could force the output to Excel to appear to begin in cell C6. But if there is already something else written to this Excel tab, even that won't work.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Nov 2025 16:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-do-I-output-to-an-Excel-workbook-in-specific-locations-using/m-p/978744#M378683</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2025-11-12T16:01:15Z</dc:date>
    </item>
  </channel>
</rss>

