<?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 Autofilter for Second row in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/375409#M90002</link>
    <description>&lt;P&gt;Sorry for the late reply, things have been too busy at work to get time to test...&lt;/P&gt;&lt;P&gt;This worked perfectly. My headers are much more complex than these so it took a little playing around, but the concept was dead on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the quick response Suzanne.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Monster&lt;/P&gt;</description>
    <pubDate>Wed, 12 Jul 2017 16:26:52 GMT</pubDate>
    <dc:creator>XMonsterX</dc:creator>
    <dc:date>2017-07-12T16:26:52Z</dc:date>
    <item>
      <title>ODS Autofilter for Second row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/373375#M89323</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a multi-sheet xlsx that I create using ODS Tagset. I have no issues with creating, or the autofilter, my issue is that it Autofilters the first column, however I want the autofilter to be on the second row (As I have dual headers and don't want to loose the second header while sorting.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I haven't been able to find a thread or example that would give me the results I need.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be very much appreciated. (I've included a screenshot if there's any issue with clarity)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Monster&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/14038iF1ACB6667898C250/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="SAS.png" title="SAS.png" /&gt;</description>
      <pubDate>Wed, 05 Jul 2017 17:45:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/373375#M89323</guid>
      <dc:creator>XMonsterX</dc:creator>
      <dc:date>2017-07-05T17:45:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Autofilter for Second row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/373828#M89438</link>
      <description>&lt;P&gt;If you use PROC REPORT, you can specify the headers in the first row on the COLUMNS statement, and then use the DEFINE statements to specify the headers for the second row. &amp;nbsp;When I do that, the autofilters show up on the second row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS EXCEL FILE='/folders/myfolders/SAS Communities/autofilter_bottom_of_headers.xlsx'
  options(autofilter='on'
          sheet_name='Autofilter 2nd row'
          absolute_column_width='20,16,16,16,16');

proc report data=sashelp.class;
  columns ('Name' name) 
          ('Sex' sex) 
          ('Age' age)
          ('Height' height)
          ('Weight' weight);
  define name / 'First name only';
  define sex / '';
  define age / '';
  define height / '(inches)';
  define weight / '(lbs)';
run;

ODS EXCEL CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Example output:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10191i37F8A4CF4AF2FBD6/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="autofilter second row in spreadsheet.jpg" title="autofilter second row in spreadsheet.jpg" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 02:23:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/373828#M89438</guid>
      <dc:creator>SuzanneDorinski</dc:creator>
      <dc:date>2017-07-07T02:23:47Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Autofilter for Second row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/375409#M90002</link>
      <description>&lt;P&gt;Sorry for the late reply, things have been too busy at work to get time to test...&lt;/P&gt;&lt;P&gt;This worked perfectly. My headers are much more complex than these so it took a little playing around, but the concept was dead on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks so much for the quick response Suzanne.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Monster&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 16:26:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/375409#M90002</guid>
      <dc:creator>XMonsterX</dc:creator>
      <dc:date>2017-07-12T16:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Autofilter for Second row</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/458964#M116509</link>
      <description>&lt;P&gt;Nice tip!&lt;/P&gt;</description>
      <pubDate>Tue, 01 May 2018 13:25:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-Autofilter-for-Second-row/m-p/458964#M116509</guid>
      <dc:creator>KirkLafler</dc:creator>
      <dc:date>2018-05-01T13:25:44Z</dc:date>
    </item>
  </channel>
</rss>

