<?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: ods tagsets.excelxp user define range in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500779#M21845</link>
    <description>No, but ODS EXCEL allows you to control that partially.</description>
    <pubDate>Tue, 02 Oct 2018 14:50:36 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2018-10-02T14:50:36Z</dc:date>
    <item>
      <title>ods tagsets.excelxp user define range</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500736#M21843</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any user define range option in ODS TAGSETS.EXCELXP.&lt;/P&gt;
&lt;P&gt;Below set of code is submitted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;ODS TAGSETS.EXCELXP  FILE="D:\Report.xls" STYLE=mystyle
options(sheet_interval='none' sheet_name='CLASS' frozen_headers='yes');
OPTIONS MISSING='';
proc report data=class nowindows 
style(header)=[fontweight=bold BACKGROUND=BIGB FOREGROUND=black fontsize=8pt font=(calibri, 8pt) ] 
style(report)=[fontweight=bold BACKGROUND=BIGB FOREGROUND=black fontsize=8pt font=(calibri, 8pt) ] ;
columns name sex age height weight sum_height_weight;
define name/'student/ name/stansys'  center 
style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};
define sex/order style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};
define age/ display 'age' style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};
define sum_height_weight/'heigt-weight' computed 
style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};
define height /style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};
define weight/ style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};

/*sub total*/
break after sex/summarize;
compute after sex;
sex=catx('-',sex,'total');
endcomp;

/*grand total*/
rbreak after/summarize;
compute after;
sex='Grand Total';
endcomp;

compute sum_height_weight;
sum_height_weight=sum(height.sum,weight.sum);
endcomp;
run;
ods tagsets.excelxp close;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The default output is started in the excle sheets from (A1-Range), But i want to change starting from (B1-Range).&lt;/P&gt;
&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="actual output.PNG" style="width: 469px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23696iAA6DE72208035270/image-size/large?v=v2&amp;amp;px=999" role="button" title="actual output.PNG" alt="actual output.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="desired output.PNG" style="width: 577px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/23697iEC9EC568F7D4EA7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="desired output.PNG" alt="desired output.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 13:50:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500736#M21843</guid>
      <dc:creator>Ravikumarkummari</dc:creator>
      <dc:date>2018-10-02T13:50:38Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp user define range</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500745#M21844</link>
      <description>&lt;P&gt;Ods tagsets.excelxp creates a plain text file which has tags which allow Excel to read it, and parse it into Excel.&amp;nbsp; Its pretty basic.&amp;nbsp; You could have another column, and set the label=" ", i.e. creating an empty column, but thats about it.&amp;nbsp; Why do you want a column before the data?&amp;nbsp; Doesn't that just make it harder to read into other software?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 14:01:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500745#M21844</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2018-10-02T14:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp user define range</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500779#M21845</link>
      <description>No, but ODS EXCEL allows you to control that partially.</description>
      <pubDate>Tue, 02 Oct 2018 14:50:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500779#M21845</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-10-02T14:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: ods tagsets.excelxp user define range</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500973#M21846</link>
      <description>&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Try something like this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options missing='';

ods _all_ close;

ods Excel file='C:\temp\temp.xlsx'
  options(sheet_interval='none' 
          sheet_name='CLASS' 
          frozen_headers='yes'
          start_at='2,1'
          flow='tables');

proc report data=sashelp.class nowindows 
  style(header)=[fontweight=bold background=bigb foreground=black fontsize=8pt font=(calibri, 8pt) ] 
  style(report)=[fontweight=bold background=bigb foreground=black fontsize=8pt font=(calibri, 8pt) ] ;
&lt;BR /&gt;columns name sex age height weight sum_height_weight;

define name/'student/ name/stansys'  center 
  style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};

define sex/order style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};

define age/ display 'age' style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};

define sum_height_weight/'heigt-weight' computed 
  style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};

define height /style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};

define weight/ style={just=c fontsize=8pt font=(calibri, 8pt) vjust=m};

* Subtotal;

break after sex/summarize;

compute after sex;
  sex=catx('-',sex,'total');
endcomp;

*Grand total;

rbreak after/summarize;

compute after;
  sex='Grand Total';
endcomp;

compute sum_height_weight;
  sum_height_weight=sum(height.sum,weight.sum);
endcomp;
run; quit;

ods Excel close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;Vince DelGobbo&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="verdana,geneva"&gt;SAS R&amp;amp;D&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 21:22:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ods-tagsets-excelxp-user-define-range/m-p/500973#M21846</guid>
      <dc:creator>Vince_SAS</dc:creator>
      <dc:date>2018-10-02T21:22:28Z</dc:date>
    </item>
  </channel>
</rss>

