<?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: Reduce space between Titles with ODS output in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626608#M20398</link>
    <description>&lt;P&gt;Try use ODS TEXT='xxxxxxx'&amp;nbsp; to replace TITLE .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods escapechar='~' ;&lt;/P&gt;
&lt;P&gt;ods text='xxxxxx&amp;nbsp; ~n yyyyy';&lt;/P&gt;</description>
    <pubDate>Sat, 22 Feb 2020 06:13:56 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2020-02-22T06:13:56Z</dc:date>
    <item>
      <title>Reduce space between Titles with ODS output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626469#M20387</link>
      <description>&lt;P&gt;I am producing a summary report that gets put into an email. We primarily use Outlook for our email. The summaries look pretty good but there is a large gap between the first and second titles. How do I reduce the gap between titles? For example, when I run this code:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/** get email ready **/
filename email email
	from 	= "from email"
	to  	= ("to_email")
	subject = "Test"
	type	="text/html";

/** Clean up report **/
proc template;
	define style styles.myexcel;
	parent=styles.excel;
		class body			/ backgroundcolor=_undef_;
		class systemtitle	/ backgroundcolor=_undef_;
		class paragraph		/ backgroundcolor=_undef_;
	end;
run;

ods _all_ close;
ods msoffice2k
        style	= myexcel
	body 	= email;

	proc report data = sashelp.cars(obs=10) nowd
		style(header) =	{color 	= white 
					 background = #003C71}

		style(report) = {just	= left
					 bordercollapse = collapse};

	title1 justify=left bold h=12pt "Title 1";
	title2 justify=left bold h=10pt "Title 2";

	columns make model type;
		define make	/ display "Make";
		define model	/ display "Model";
		define type	/ display "Type";

	run;
ods msoffice2k close;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I get this output:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="output.jpg" style="width: 326px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36289iC65ABEF4CA687308/image-size/medium?v=v2&amp;amp;px=400" role="button" title="output.jpg" alt="output.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 14:17:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626469#M20387</guid>
      <dc:creator>supp</dc:creator>
      <dc:date>2020-02-21T14:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce space between Titles with ODS output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626495#M20388</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;LSPACE=line-space &amp;lt;units&amp;gt;&lt;/P&gt;
&lt;P&gt;specifies the amount of spacing above and below lines of text.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 16:11:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626495#M20388</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2020-02-21T16:11:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce space between Titles with ODS output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626543#M20390</link>
      <description>&lt;P&gt;Thanks for the suggestion&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/15410"&gt;@data_null__&lt;/a&gt;&amp;nbsp;. I played around with adding the LSPACE option in the title statement but I can't get the gap to be smaller. I can make the font bigger but I can't shrink the gap. Here is an example of how I applied the option:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;title1 justify=left bold h=12pt lspace=2pt wrap "Title 1";&lt;BR /&gt;title2 justify=left bold h=10pt lspace=2pt wrap"Title 2";&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 19:36:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626543#M20390</guid>
      <dc:creator>supp</dc:creator>
      <dc:date>2020-02-21T19:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce space between Titles with ODS output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626558#M20391</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; When I use "regular" ODS HTML, ODS PDF and ODS RTF with the following code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="code_used_lspace.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36319i1B6ABBCAEF5F5E3E/image-size/large?v=v2&amp;amp;px=999" role="button" title="code_used_lspace.png" alt="code_used_lspace.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see that 3 of the destinations show the use of LSPACE= -- here's the output for that code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_lspace.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36320i5D202563445CA972/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_lspace.png" alt="use_lspace.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But, the odd man out is MSOFFICE2K destination as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="lspace_msoffice2k_not.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36321iCC91090BD4940F86/image-size/large?v=v2&amp;amp;px=999" role="button" title="lspace_msoffice2k_not.png" alt="lspace_msoffice2k_not.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;The browser does NOT seem to render MSOFFICE2K output created with LSPACE the same way the other destinations do. My guess is that this is a function of the Microsoft HTML spec that is used for MSOFFICE2K output. But you'd have to check with Tech Support to be sure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; My recommendation would be to try a different destination for your output, like regular ODS HTML or ODS PDF.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2020 20:51:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626558#M20391</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2020-02-21T20:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Reduce space between Titles with ODS output</title>
      <link>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626608#M20398</link>
      <description>&lt;P&gt;Try use ODS TEXT='xxxxxxx'&amp;nbsp; to replace TITLE .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ods escapechar='~' ;&lt;/P&gt;
&lt;P&gt;ods text='xxxxxx&amp;nbsp; ~n yyyyy';&lt;/P&gt;</description>
      <pubDate>Sat, 22 Feb 2020 06:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/Reduce-space-between-Titles-with-ODS-output/m-p/626608#M20398</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2020-02-22T06:13:56Z</dc:date>
    </item>
  </channel>
</rss>

