<?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: Proc Report Sheet Name in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3862#M1618</link>
    <description>Try splitting up the ods tagset.excelxp;&lt;BR /&gt;
&lt;BR /&gt;
Put:&lt;BR /&gt;
&lt;B&gt;ods tagsets.excelxp file="C:\Documents and Settings\name\Desktop\Append.xls" &lt;BR /&gt;
style=xlrtf &lt;BR /&gt;
options(sheet_interval='Proc' center_horizontal='yes');&lt;/B&gt;&lt;BR /&gt;
Outside the macro, before the call (%pool)&lt;BR /&gt;
&lt;BR /&gt;
Put:&lt;BR /&gt;
&lt;B&gt;ods tagsets.excelxp options(Sheet_Name="&amp;amp;p.");&lt;/B&gt;&lt;BR /&gt;
Inside the macro&lt;BR /&gt;
&lt;BR /&gt;
Put:&lt;BR /&gt;
&lt;B&gt;ods tagsets.excelxp close;&lt;BR /&gt;
ods listing;&lt;/B&gt; &lt;BR /&gt;
Outside the macro, after the call&lt;BR /&gt;
&lt;BR /&gt;
There may be other options available:&lt;BR /&gt;
Search the forum for Excelxp and look for "by group processing" (which is what I spent the morning doing)</description>
    <pubDate>Wed, 18 Jul 2007 18:40:01 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-07-18T18:40:01Z</dc:date>
    <item>
      <title>Proc Report Sheet Name</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3861#M1617</link>
      <description>In ExcelXP I am trying to produce a single sheet per variable. I currently have the variable as a macro, but only get one tab as the last submitted macro variable. I have seen a few posts, but still cannot get a solution that works. below is the code if anyone has thought, please share.&lt;BR /&gt;
&lt;BR /&gt;
%MACRO pool (p);&lt;BR /&gt;
title; &lt;BR /&gt;
ods listing close; &lt;BR /&gt;
options missing=' ' center ; &lt;BR /&gt;
ods tagsets.excelxp file="C:\Documents and Settings\name\Desktop\Append.xls" &lt;BR /&gt;
     style=xlrtf &lt;BR /&gt;
options(sheet_interval='Proc' Sheet_Name="&amp;amp;p." center_horizontal='yes');&lt;BR /&gt;
proc report data=stacked nowindows split='/' &lt;BR /&gt;
style(summary)=Header;&lt;BR /&gt;
where pool = "&amp;amp;p." and upb &amp;gt; 0;&lt;BR /&gt;
column 	varf var1 total_upb upb six_plus f_upb c_upb ;&lt;BR /&gt;
define varf / group ;&lt;BR /&gt;
define var1 / 'Metric' group;&lt;BR /&gt;
define total_upb / 'tot_upb' group;&lt;BR /&gt;
define upb / '$ Balance' analysis sum style={tagattr='format:#,###'};&lt;BR /&gt;
define six_plus / '$ Six' analysis sum;&lt;BR /&gt;
define f_upb / 'F UPB' analysis sum;&lt;BR /&gt;
define c_upb / 'C UPB' analysis sum;&lt;BR /&gt;
rbreak after / summarize style={font_weight=bold background=lightgrey foreground=black}; &lt;BR /&gt;
compute before _page_ /  style={font_weight=bold foreground=black font_size=6}; &lt;BR /&gt;
line "some title"; &lt;BR /&gt;
endcomp;&lt;BR /&gt;
run; &lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
ods listing; &lt;BR /&gt;
%mend;&lt;BR /&gt;
%pool(MLMI 2006-HE2);&lt;BR /&gt;
%pool(MLMI 2006-HE4);</description>
      <pubDate>Wed, 18 Jul 2007 16:19:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3861#M1617</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-18T16:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Sheet Name</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3862#M1618</link>
      <description>Try splitting up the ods tagset.excelxp;&lt;BR /&gt;
&lt;BR /&gt;
Put:&lt;BR /&gt;
&lt;B&gt;ods tagsets.excelxp file="C:\Documents and Settings\name\Desktop\Append.xls" &lt;BR /&gt;
style=xlrtf &lt;BR /&gt;
options(sheet_interval='Proc' center_horizontal='yes');&lt;/B&gt;&lt;BR /&gt;
Outside the macro, before the call (%pool)&lt;BR /&gt;
&lt;BR /&gt;
Put:&lt;BR /&gt;
&lt;B&gt;ods tagsets.excelxp options(Sheet_Name="&amp;amp;p.");&lt;/B&gt;&lt;BR /&gt;
Inside the macro&lt;BR /&gt;
&lt;BR /&gt;
Put:&lt;BR /&gt;
&lt;B&gt;ods tagsets.excelxp close;&lt;BR /&gt;
ods listing;&lt;/B&gt; &lt;BR /&gt;
Outside the macro, after the call&lt;BR /&gt;
&lt;BR /&gt;
There may be other options available:&lt;BR /&gt;
Search the forum for Excelxp and look for "by group processing" (which is what I spent the morning doing)</description>
      <pubDate>Wed, 18 Jul 2007 18:40:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3862#M1618</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-07-18T18:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Sheet Name</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3863#M1619</link>
      <description>Hi...I think the issue is that you need to move your file creation option outside of the macro program:&lt;BR /&gt;
[pre]&lt;BR /&gt;
%macro pool(p=one);&lt;BR /&gt;
....&lt;BR /&gt;
** ONLY have your sheet_name option inside the macro definition;&lt;BR /&gt;
ods tagsets.excelxp options(sheet_interval='table' sheet_name="&amp;amp;p");&lt;BR /&gt;
  &lt;BR /&gt;
** then proc report or other code;&lt;BR /&gt;
 &lt;BR /&gt;
%mend pool;&lt;BR /&gt;
 &lt;BR /&gt;
ods tagsets.excelxp file='OneWB.xls';&lt;BR /&gt;
%pool(p=one);&lt;BR /&gt;
%pool(p=two);&lt;BR /&gt;
ods tagsets.excelxp close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
Or something very close to the above.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 18 Jul 2007 19:14:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3863#M1619</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-07-18T19:14:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Sheet Name</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3864#M1620</link>
      <description>Hi,&lt;BR /&gt;
&lt;BR /&gt;
thanks a lot, that really saved my day!&lt;BR /&gt;
&lt;BR /&gt;
Great forum, best regards,&lt;BR /&gt;
&lt;BR /&gt;
Thomas</description>
      <pubDate>Wed, 13 Feb 2008 08:42:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Sheet-Name/m-p/3864#M1620</guid>
      <dc:creator>tbatliner</dc:creator>
      <dc:date>2008-02-13T08:42:38Z</dc:date>
    </item>
  </channel>
</rss>

