<?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 affects Autofilter in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192655#M48372</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, the other alternative (and in my mind, the better alternative) is to open a track with Tech Support.&amp;nbsp; Tech Support can look at the code (all the code) and the data and if necessary, involve a developer who knows TAGSETS.EXCELXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Mar 2014 16:29:20 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2014-03-05T16:29:20Z</dc:date>
    <item>
      <title>Proc Report "compute before _page_" affects Autofilter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192651#M48368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Hi all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;I have recently started at a new client.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Alot of old code and they are macro crazy.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;I have a proc report with a compute before _page_ block within ODS output (excelxp tagset).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;It seems this compute block has the effect of shifting my autofilter to the first row of the data section and off the heading row.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;proc report data=work.dummy nowindows split='*'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; style(column)={background=#ffcc33 foreground=black font_weight=bold};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; compute before _page_ / style=line;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line "&amp;amp;session_fullName_oBlanks.";&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line ' ';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; endcomp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; columns btrName eve_status mAnzahlAbsolut BE_Geplant_abs WDB_Geplant_abs mAnzahlProzent BE_Erwartung;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; define btrName&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; define eve_status&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; define mAnzahlAbsolut&amp;nbsp;&amp;nbsp; / '' style(Column)=[just=right tagattr='formula:subtotal(9,R[2]C[0]:R[50000]C[0]) format:#,##0'];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; define BE_Geplant_abs&amp;nbsp;&amp;nbsp; / '' style(Column)=[just=right tagattr='formula:subtotal(9,R[2]C[0]:R[50000]C[0]) format:#,##0'];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; define WDB_Geplant_abs&amp;nbsp; / '' style(Column)=[just=right tagattr='formula:subtotal(9,R[2]C[0]:R[50000]C[0]) format:#,##0'];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; define mAnzahlProzent&amp;nbsp;&amp;nbsp; / '' style(Column)=[just=right tagattr='formula:subtotal(9,R[2]C[0]:R[50000]C[0]) format:#,##0'];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&amp;nbsp;&amp;nbsp; define BE_Erwartung&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / '' style(Column)=[just=right tagattr='formula:subtotal(9,R[2]C[0]:R[50000]C[0]) format:#,##0'];&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Any thoughts on what to do with this issue ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 09:55:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192651#M48368</guid>
      <dc:creator>DoUKnowWhoIAm</dc:creator>
      <dc:date>2014-03-05T09:55:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report affects Autofilter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192652#M48369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Probably Excel being "helpful".&amp;nbsp; I just tried this code:&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp file="S:\Temp\Rob\x.xls" options (autofilter="yes");&lt;/P&gt;&lt;P&gt;proc report data=sashelp.cars nowindows split='*';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; compute before _page_ ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line "aaaaa";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; line ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;ods tagsets.excelxp close;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And it put the autofilter on the data, so maybe try removing bits of the program and re-running each time to see which works.&amp;nbsp; Could be the style=line statement or somewhere else in the style which is telling Excel which is row headings.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 11:21:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192652#M48369</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-03-05T11:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report affects Autofilter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192653#M48370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx, Excel sometimes is a little too helpful ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried by removing parts of the Program. It doesn't seem to work.&lt;/P&gt;&lt;P&gt;I'll keep on trying !&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:26:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192653#M48370</guid>
      <dc:creator>DoUKnowWhoIAm</dc:creator>
      <dc:date>2014-03-05T15:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report affects Autofilter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192654#M48371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If all else fails you could use a hammer and go with reading the generated file - its a text xml file - and updating the line:&lt;/P&gt;&lt;P&gt;&amp;lt;AutoFilter x:Range="R4C1:R432C15" xmlns="urn:schemas-microsoft-com:office:excel"&amp;gt;&amp;lt;/AutoFilter&amp;gt;&amp;lt;Table ss:StyleID="_body"&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the range would be the one to modify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 15:31:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192654#M48371</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-03-05T15:31:59Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report affects Autofilter</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192655#M48372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or, the other alternative (and in my mind, the better alternative) is to open a track with Tech Support.&amp;nbsp; Tech Support can look at the code (all the code) and the data and if necessary, involve a developer who knows TAGSETS.EXCELXP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Mar 2014 16:29:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Proc-Report-quot-compute-before-page-quot-affects-Autofilter/m-p/192655#M48372</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-03-05T16:29:20Z</dc:date>
    </item>
  </channel>
</rss>

