<?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 arrangement of sas reports side by side on ods Excel in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891329#M352127</link>
    <description>&lt;PRE class=""&gt;&lt;SPAN class=""&gt;I am facing an obstacle while creating a report, and I need your assistance, please. My current program generates the arrays successively. However, I would like the flexibility to arrange them according to my preferences. For example, in the first tab, I would like to place tables 1 and 2 side by side, and then the third table below those. In short, I want to be able to arrange the tables at my convenience on an Excel sheet.

Unfortunately, my attempts so far have not been successful. I tried using "ods layout", but apparently the syntax I used was not correct.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;ods excel file='c:\example6.xlsx'
 
options( /*autofilter = "1-3" frozen_headers = "on" frozen_rowheaders = "1"*/ start_at='C3' sheet_interval='none' sheet_name='Cl');
proc report data=sashelp.class;
column age height weight;
define age / group;
define height / mean;
define weight / mean;
rbreak before / summarize; run;
proc report data=sashelp.class;
column sex height weight;
define sex / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
proc tabulate data=sashelp.class;
    class sex age;
    table sex,age;
run;
 
ods excel options(sheet_interval='output');
ods exclude all;
data _null_;
declare odsout obj();
run;
ods select all;
 
/*******************************************************************/
ods excel options(sheet_interval='none' sheet_name='H');
proc report data=sashelp.heart;
column bp_status height weight;
define bp_status / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
proc report data=sashelp.heart;
column sex height weight;
define sex / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
 
ods excel options(sheet_interval='output');
ods exclude all;
data _null_;
declare odsout obj();
run;
ods select all;
/*******************************************************************/
 
ods excel options(sheet_interval='none' sheet_name='ttt');
proc report data=sashelp.heart;
column bp_status height weight;
define bp_status / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
proc report data=sashelp.heart;
column sex height weight;
define sex / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
ods excel close;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 14:32:38 GMT</pubDate>
    <dc:creator>snip</dc:creator>
    <dc:date>2023-08-28T14:32:38Z</dc:date>
    <item>
      <title>arrangement of sas reports side by side on ods Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891329#M352127</link>
      <description>&lt;PRE class=""&gt;&lt;SPAN class=""&gt;I am facing an obstacle while creating a report, and I need your assistance, please. My current program generates the arrays successively. However, I would like the flexibility to arrange them according to my preferences. For example, in the first tab, I would like to place tables 1 and 2 side by side, and then the third table below those. In short, I want to be able to arrange the tables at my convenience on an Excel sheet.

Unfortunately, my attempts so far have not been successful. I tried using "ods layout", but apparently the syntax I used was not correct.&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;ods excel file='c:\example6.xlsx'
 
options( /*autofilter = "1-3" frozen_headers = "on" frozen_rowheaders = "1"*/ start_at='C3' sheet_interval='none' sheet_name='Cl');
proc report data=sashelp.class;
column age height weight;
define age / group;
define height / mean;
define weight / mean;
rbreak before / summarize; run;
proc report data=sashelp.class;
column sex height weight;
define sex / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
proc tabulate data=sashelp.class;
    class sex age;
    table sex,age;
run;
 
ods excel options(sheet_interval='output');
ods exclude all;
data _null_;
declare odsout obj();
run;
ods select all;
 
/*******************************************************************/
ods excel options(sheet_interval='none' sheet_name='H');
proc report data=sashelp.heart;
column bp_status height weight;
define bp_status / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
proc report data=sashelp.heart;
column sex height weight;
define sex / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
 
ods excel options(sheet_interval='output');
ods exclude all;
data _null_;
declare odsout obj();
run;
ods select all;
/*******************************************************************/
 
ods excel options(sheet_interval='none' sheet_name='ttt');
proc report data=sashelp.heart;
column bp_status height weight;
define bp_status / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
proc report data=sashelp.heart;
column sex height weight;
define sex / group;
define height / mean;
define weight / mean;
rbreak before / summarize;
run;
ods excel close;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 14:32:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891329#M352127</guid>
      <dc:creator>snip</dc:creator>
      <dc:date>2023-08-28T14:32:38Z</dc:date>
    </item>
    <item>
      <title>Re: arrangement of sas reports side by side on ods Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891330#M352128</link>
      <description>&lt;P&gt;ODS EXCEL does not have the capability of positioning reports (or graphics) side by side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try to produce side-by-side reports all within PROC REPORT (although this may not be possible depending on what the reports are) and having PROC REPORT produce &lt;A href="https://communities.sas.com/t5/SAS-Procedures/SAS-Excell-Report-Section-Column-Breaks/m-p/890591#M82910" target="_self"&gt;blank columns&lt;/A&gt; between.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 14:46:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891330#M352128</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-08-28T14:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: arrangement of sas reports side by side on ods Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891346#M352132</link>
      <description>&lt;PRE class=""&gt;&lt;SPAN class=""&gt;Hello Miller,
Your idea is great...
I think I can modify my data to have all of my data on the same table and add the Gap column.
Thank you very much your help is precious&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=""&gt;ods excel file='c:\example6.xlsx' 

options( /*autofilter = "1-3" frozen_headers = "on" frozen_rowheaders = "1" */start_at='C3' sheet_interval='none' sheet_name='C5');
proc format;
    value gapf .,low-high=' ';
run;
proc report data=sashelp.class;
column age height gap weight;
define age / group; 
define height / mean; 
define weight / mean; 
define gap / ' ' style(column)={BORDERTOPCOLOR=white BORDERBOTTOMCOLOR=white background=white } ;
define gap/'' format=gapf. style(header)={background=white BORDERBOTTOMCOLOR=white BORDERTOPCOLOR=white};
rbreak before / summarize; run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 15:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891346#M352132</guid>
      <dc:creator>snip</dc:creator>
      <dc:date>2023-08-28T15:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: arrangement of sas reports side by side on ods Excel</title>
      <link>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891459#M352170</link>
      <description>&lt;A href="https://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html" target="_blank"&gt;https://support.sas.com/rnd/base/ods/odsmarkup/msoffice2k/index.html&lt;/A&gt;</description>
      <pubDate>Tue, 29 Aug 2023 11:29:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/arrangement-of-sas-reports-side-by-side-on-ods-Excel/m-p/891459#M352170</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2023-08-29T11:29:52Z</dc:date>
    </item>
  </channel>
</rss>

