<?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: How to remove the blank rows from EXCEL report created from SAS ODS HTML. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346194#M18251</link>
    <description>&lt;P&gt;Somehow both title1 and title2 are getting wrapped up in column A in row1 and row2.&lt;/P&gt;</description>
    <pubDate>Fri, 31 Mar 2017 16:02:28 GMT</pubDate>
    <dc:creator>Rajeeva</dc:creator>
    <dc:date>2017-03-31T16:02:28Z</dc:date>
    <item>
      <title>How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346133#M18244</link>
      <description>&lt;P&gt;This is my first time using this service.&amp;nbsp; I am creating the EXCEL report using SAS ODS HTML.&amp;nbsp; Somehow it is automatically inserting the blank row after every record in the EXCEL report. I am using SAS 9.4&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; define style styles.demo05b;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; parent=styles.printer;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; class table /&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; frame=void&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; just=l&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; borderspacing=0&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rules = cols;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;ods html file="/cdoracle/Y2015/reports/TABLE_R37_HTML.xls" style=demo05b;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 13:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346133#M18244</guid>
      <dc:creator>Rajeeva</dc:creator>
      <dc:date>2017-03-31T13:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346162#M18245</link>
      <description>&lt;P&gt;I think your results are due to the "asis = on" option in your define for the "hold_descr" column. I don't have your data, so I cannot confirm this, but try removing it. Whether that breaks some other desired result is another question.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:37:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346162#M18245</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-31T14:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346164#M18246</link>
      <description>&lt;P&gt;It worked and I really appreciate your help.&amp;nbsp; But now I am confused.&amp;nbsp; Previously I used asis=on option to keep the indentation blanks.&lt;/P&gt;&lt;P&gt;I have two more questions, you already have my program.&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; In the report, my title2 is not left justified.&amp;nbsp; Somehow it is starting from column B.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; It's not letting me use titlte1 to start from row 1.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:50:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346164#M18246</guid>
      <dc:creator>Rajeeva</dc:creator>
      <dc:date>2017-03-31T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346173#M18247</link>
      <description>&lt;P&gt;So my initial solution was based on "what the heck is that 'asis...'?" and just trial and error using fake data (since I don't have yours). But I did find the note (&lt;A href="http://support.sas.com/kb/49/853.html" target="_blank"&gt;http://support.sas.com/kb/49/853.html&lt;/A&gt;) and it does fix the problem without removing the "asis" option. See my example below and maybe that will fix the issue without adverse effects?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html body=".....\report_v1.xls"; 
                                                    
proc report data=sashelp.class nowd;
   define name / style(column)=[asis=on] display;
run;

ods html close;


ods html body=".....\report_v2.xls"
    headtext="&amp;lt;style&amp;gt; pre { margin:0 }&amp;lt;/style&amp;gt;"; 
                                                    
proc report data=sashelp.class nowd;
   define name / style(column)=[asis=on] display;
run;

ods html close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 31 Mar 2017 14:59:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346173#M18247</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-31T14:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346181#M18248</link>
      <description>&lt;P&gt;I added your headtext option in my program and also kept asis=on option and it worked perfect.&amp;nbsp; YOU ARE GOOD.&lt;/P&gt;&lt;P&gt;Did you see my other 2 questions about title1 and title2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your help is really appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:28:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346181#M18248</guid>
      <dc:creator>Rajeeva</dc:creator>
      <dc:date>2017-03-31T15:28:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346185#M18249</link>
      <description>&lt;P&gt;Sorry, I missed the question about the titles.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing can see there in your code is that it looks like the opening and closing quotation marks are different: &amp;nbsp;&lt;SPAN&gt;" vs&amp;nbsp;”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Opening quote different from end quote:&lt;/P&gt;&lt;P&gt;title1 j=left color=white "Table with row headers in column A and column headers in rows 2 through 3”;&lt;BR /&gt;title2 &amp;amp;mTOpn1 "&amp;amp;mpart2 &amp;amp;mpart3 &amp;amp;myear ";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That creates imbalanced quotation marks. When I fix that and use those titles, I don't have the issue you describe. Title1 is in A1 and title2 is in A2. Check to see if your issue is the imbalanced quotes, maybe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 15:40:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346185#M18249</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-31T15:40:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346194#M18251</link>
      <description>&lt;P&gt;Somehow both title1 and title2 are getting wrapped up in column A in row1 and row2.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 16:02:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346194#M18251</guid>
      <dc:creator>Rajeeva</dc:creator>
      <dc:date>2017-03-31T16:02:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346197#M18252</link>
      <description>&lt;P&gt;Again, I'd check your quotation marks. They looked imbalanced because whatever the underlying ascii code for the opening quote looks different from the closing quote.&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 16:06:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346197#M18252</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-31T16:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346205#M18253</link>
      <description>&lt;P&gt;I modified the quotation marks like you suggested.&amp;nbsp; Both titles are still getting wrapped up in column A.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%MACRO print_report ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET mTOpn1 = bold h=12pt font='Arial' justify=l ;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET mpart2&amp;nbsp;&amp;nbsp;&amp;nbsp; = TABLE R37. Number of nonfatal occupational injuries and illnesses involving;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %LET mpart3&amp;nbsp;&amp;nbsp;&amp;nbsp; = days away from work^{super 1} by industry and age of worker, private industry,;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title1 &amp;amp;mTOpn1 "Table with row headers in column A and column headers in rows 2 through 3";&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; title2 &amp;amp;mTOpn1 "&amp;amp;mpart2 &amp;amp;mpart3 &amp;amp;myear ";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; proc report data=selected_records3 nowd split = '~' STYLE(report)={rules=none }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE(header)={font_size=10pt font_face='Arial' background=#D3D3D3 }&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; STYLE(Column)={tagattr='Format:@'};&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 16:18:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346205#M18253</guid>
      <dc:creator>Rajeeva</dc:creator>
      <dc:date>2017-03-31T16:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346231#M18254</link>
      <description>&lt;P&gt;I think you've exhausted what I can do to easily help you, unfortunately. I tried the below as an alternative, but I still don't think it does what you want.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would post another question addressing with the specific issue of how to get titles to not wrap using ODS html. There's a SAS employee named Cynthia who knows ODS inside and out, so maybe she'll check it out. I'm not sure if you can put a tag on there that might get her attention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;
ods html body="...\report_v2.xls"
    headtext="&amp;lt;style&amp;gt; pre { margin:0 }&amp;lt;/style&amp;gt;" style = styles.demo05b; ; 

ods text = "Table with row headers in column A and column headers in rows 2 through 3";
ods text = "&amp;amp;mpart2 &amp;amp;mpart3 &amp;amp;myear ";
                                                
proc report data=sashelp.class nowd;
   define name / style(column)=[asis=on] display;
run;

ods html close;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2017 17:06:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346231#M18254</guid>
      <dc:creator>collinelliot</dc:creator>
      <dc:date>2017-03-31T17:06:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to remove the blank rows from EXCEL report created from SAS ODS HTML.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346245#M18257</link>
      <description>Hi: unfortunately, I am teaching today and unable to run code. &lt;BR /&gt;&lt;BR /&gt;Excel opening HTML is a tricky business. Just because you name the file as .XLS, it is not a true, binary XLS file. Excel is opening an HTML file and doing with it what it wants to do. If you were still running SAS 8, you would be using HTML3 with ODS HTML. If you are using SAS 9, then the default HTML created is HTML 4.0. How your Excel renders that HTML depends on Excel.&lt;BR /&gt;&lt;BR /&gt;One thing you could try is to switch to "microsoft friendly" html and use&lt;BR /&gt;ODS MSOFFICE2K file="...";&lt;BR /&gt;...code...&lt;BR /&gt;ODS MSOFFICE2K close;&lt;BR /&gt;&lt;BR /&gt;That may make Excel happier. It may not. A fall back position would be to work with Tech Support. I can try to take a look when I'm not teaching, but Tech Support might be faster.&lt;BR /&gt;&lt;BR /&gt;cynthia</description>
      <pubDate>Fri, 31 Mar 2017 17:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-to-remove-the-blank-rows-from-EXCEL-report-created-from-SAS/m-p/346245#M18257</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-03-31T17:26:41Z</dc:date>
    </item>
  </channel>
</rss>

