<?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 ODS RTF output adding extra spaces? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-adding-extra-spaces/m-p/784378#M250304</link>
    <description>&lt;P&gt;I'm using ODS RTF to output Proc Reports to a Word document. The following is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;		ods rtf file='C:\Annual Summary Reports_2018-forward\Rolling Reports\AUTOLIB\Tables.rtf' noKEEPN; 
		options nodate nonumber orientation=portrait ;

				** PROC REPORT work;
				Proc report data=year3_region out=report_&amp;amp;thisname 
					nowd
					 STYLE(report) = [rules=none frame=hsides background=white cellspacing=0 cellpadding=.20] 
					 STYLE(header) = [foreground=black background=white	cellheight=.23in 
							borderbottomwidth=2.0pt borderbottomcolor=black
							bordertopwidth=.5pt bordertopcolor=white
							borderleftwidth=.5pt borderleftcolor=white
							borderrightwidth=.5pt borderrightcolor=white]
					;

					Column	region YY4_DOB,Percent dummyvar;

						Define	region / group
								style(column) = {cellheight=.23in cellwidth=1.0in
								vjust=bottom just=left
									borderleftcolor=white borderleftwidth=.5pt
									borderrightcolor=white borderrightwidth=.5pt paddingright=.05in};

						Define yy4_DOB / across
								style(column) = {cellheight=.23in cellwidth=1.25in
								vjust=bottom just=Middle
									borderleftcolor=white borderleftwidth=.5pt
									borderrightcolor=white borderrightwidth=.5pt paddingleft=.05in};

						Define Percent / display 
								style(column) = {cellheight=.23in cellwidth=1.25in
								vjust=bottom just=left
									borderleftcolor=white borderleftwidth=.5pt
									borderrightcolor=white borderrightwidth=.5pt paddingleft=.05in};

						Define dummyvar / computed noprint ;
						 compute dummyvar;
						 dummyvar = 1;
						 endcomp;
				Run;
			ODS rtf CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This causes the following type of output. This is largely what I'm after, but I want the 2nd and 3rd lines to be less bold, and I can't figure out how to get it to display all the estimates without having all that space--this does not show up in the SAS output itself. Those estimates are a the result of a concatenation of 3 other variables in a previous data step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Percent=Row_Percent || "%(" || Lower_CL || ", " || Upper_CL || ")" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example2.png" style="width: 0px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66441i3CF6CDB10955D3C1/image-size/large?v=v2&amp;amp;px=999" width="0" height="0" role="button" title="example2.png" alt="example2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How do I get rid of the extra spaces/wrapping AND how do I get rid of that "The SAS System" at the top?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Dec 2021 19:59:23 GMT</pubDate>
    <dc:creator>SAS93</dc:creator>
    <dc:date>2021-12-06T19:59:23Z</dc:date>
    <item>
      <title>ODS RTF output adding extra spaces?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-adding-extra-spaces/m-p/784378#M250304</link>
      <description>&lt;P&gt;I'm using ODS RTF to output Proc Reports to a Word document. The following is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;		ods rtf file='C:\Annual Summary Reports_2018-forward\Rolling Reports\AUTOLIB\Tables.rtf' noKEEPN; 
		options nodate nonumber orientation=portrait ;

				** PROC REPORT work;
				Proc report data=year3_region out=report_&amp;amp;thisname 
					nowd
					 STYLE(report) = [rules=none frame=hsides background=white cellspacing=0 cellpadding=.20] 
					 STYLE(header) = [foreground=black background=white	cellheight=.23in 
							borderbottomwidth=2.0pt borderbottomcolor=black
							bordertopwidth=.5pt bordertopcolor=white
							borderleftwidth=.5pt borderleftcolor=white
							borderrightwidth=.5pt borderrightcolor=white]
					;

					Column	region YY4_DOB,Percent dummyvar;

						Define	region / group
								style(column) = {cellheight=.23in cellwidth=1.0in
								vjust=bottom just=left
									borderleftcolor=white borderleftwidth=.5pt
									borderrightcolor=white borderrightwidth=.5pt paddingright=.05in};

						Define yy4_DOB / across
								style(column) = {cellheight=.23in cellwidth=1.25in
								vjust=bottom just=Middle
									borderleftcolor=white borderleftwidth=.5pt
									borderrightcolor=white borderrightwidth=.5pt paddingleft=.05in};

						Define Percent / display 
								style(column) = {cellheight=.23in cellwidth=1.25in
								vjust=bottom just=left
									borderleftcolor=white borderleftwidth=.5pt
									borderrightcolor=white borderrightwidth=.5pt paddingleft=.05in};

						Define dummyvar / computed noprint ;
						 compute dummyvar;
						 dummyvar = 1;
						 endcomp;
				Run;
			ODS rtf CLOSE;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This causes the following type of output. This is largely what I'm after, but I want the 2nd and 3rd lines to be less bold, and I can't figure out how to get it to display all the estimates without having all that space--this does not show up in the SAS output itself. Those estimates are a the result of a concatenation of 3 other variables in a previous data step:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Percent=Row_Percent || "%(" || Lower_CL || ", " || Upper_CL || ")" ;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="example2.png" style="width: 0px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/66441i3CF6CDB10955D3C1/image-size/large?v=v2&amp;amp;px=999" width="0" height="0" role="button" title="example2.png" alt="example2.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;How do I get rid of the extra spaces/wrapping AND how do I get rid of that "The SAS System" at the top?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 19:59:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-adding-extra-spaces/m-p/784378#M250304</guid>
      <dc:creator>SAS93</dc:creator>
      <dc:date>2021-12-06T19:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: ODS RTF output adding extra spaces?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-adding-extra-spaces/m-p/784459#M250340</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;gt; How do I get rid of the extra spaces/wrapping&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Remove trailing spaces like&lt;SPAN&gt;&amp;nbsp;this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt; Percent = catt(Row_Percent, "% (" , Lower_CL, ", " , Upper_CL, ")" ) ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;gt; how do I get rid of that "The SAS System" at the top?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Remove the title.&lt;/SPAN&gt;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;title;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Dec 2021 03:53:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ODS-RTF-output-adding-extra-spaces/m-p/784459#M250340</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2021-12-07T03:53:14Z</dc:date>
    </item>
  </channel>
</rss>

