<?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 Remove row under title of ODS EXCEL and PROC FREQ output in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691587#M24830</link>
    <description>&lt;P&gt;I'm using ODS EXCEL to export results produced by PROC FREQ to Excel. The output includes an empty row between the table title and the start of the table (see highlighted in yellow in Excel file). How can I delete that row in my SAS code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I do this in the PROC TEMPLATE or in the ODS EXCEL statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my sample code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Create sample dataset;
data test;
	set 	sashelp.Class;
	run;

*Create template;
	proc template;
		 edit  base.freq.onewaylist;
			 edit FVariable;                                                       
			 	just=varjust;
				style=rowheader;
				header="Age at survey date";
			end;
		 end;
	run;

ods excel file="PATHNAME\test.xlsx" 
	options(sheet_name="Female" 
			embedded_titles="yes"
			embed_titles_once="yes");

	proc freq data = test(where=(sex="F"));
		tables age;
		title "Age at survey for female participants";
	run;

ods excel close;

proc template;
	delete base.freq.onewaylist;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Wed, 14 Oct 2020 16:52:38 GMT</pubDate>
    <dc:creator>Zoe8SAS</dc:creator>
    <dc:date>2020-10-14T16:52:38Z</dc:date>
    <item>
      <title>Remove row under title of ODS EXCEL and PROC FREQ output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691587#M24830</link>
      <description>&lt;P&gt;I'm using ODS EXCEL to export results produced by PROC FREQ to Excel. The output includes an empty row between the table title and the start of the table (see highlighted in yellow in Excel file). How can I delete that row in my SAS code?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I do this in the PROC TEMPLATE or in the ODS EXCEL statement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's my sample code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Create sample dataset;
data test;
	set 	sashelp.Class;
	run;

*Create template;
	proc template;
		 edit  base.freq.onewaylist;
			 edit FVariable;                                                       
			 	just=varjust;
				style=rowheader;
				header="Age at survey date";
			end;
		 end;
	run;

ods excel file="PATHNAME\test.xlsx" 
	options(sheet_name="Female" 
			embedded_titles="yes"
			embed_titles_once="yes");

	proc freq data = test(where=(sex="F"));
		tables age;
		title "Age at survey for female participants";
	run;

ods excel close;

proc template;
	delete base.freq.onewaylist;
run;

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 16:52:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691587#M24830</guid>
      <dc:creator>Zoe8SAS</dc:creator>
      <dc:date>2020-10-14T16:52:38Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row under title of ODS EXCEL and PROC FREQ output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691592#M24833</link>
      <description>Typically done via PROC TEMPLATE but could also be accomplished using HIDDEN_ROWS option and possibly the rowbreaks_interval depending on how dynamic you need it to be. &lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:02:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691592#M24833</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-14T17:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row under title of ODS EXCEL and PROC FREQ output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691600#M24837</link>
      <description>&lt;P&gt;Thanks! I want to delete it, not just hide it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How would I do this in PROC TEMPLATE?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691600#M24837</guid>
      <dc:creator>Zoe8SAS</dc:creator>
      <dc:date>2020-10-14T17:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row under title of ODS EXCEL and PROC FREQ output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691602#M24838</link>
      <description>Not easily? First you'd have to figure out which parameter/setting controlled that space (top/bottom margin) in the ODS EXCEl, figure out which style you're using and the parent and modify it accordingly. &lt;BR /&gt;&lt;BR /&gt;Here's a rough idea of what that looks like the proc template code at least.&lt;BR /&gt;&lt;A href="https://support.sas.com/kb/39/540.html" target="_blank"&gt;https://support.sas.com/kb/39/540.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Oct 2020 17:26:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691602#M24838</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-10-14T17:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: Remove row under title of ODS EXCEL and PROC FREQ output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691848#M24864</link>
      <description>&lt;P&gt;Thanks! I will delete it in Excel for now and then look more closely at the proc template code.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Oct 2020 14:34:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Remove-row-under-title-of-ODS-EXCEL-and-PROC-FREQ-output/m-p/691848#M24864</guid>
      <dc:creator>Zoe8SAS</dc:creator>
      <dc:date>2020-10-15T14:34:20Z</dc:date>
    </item>
  </channel>
</rss>

