<?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: New Line in ODS RTF PRETEXT in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/New-Line-in-ODS-RTF-PRETEXT/m-p/643397#M23997</link>
    <description>&lt;P&gt;RTF commands start with backslash.&amp;nbsp; Try \line.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  style(report)={font=('Arial',9pt,bold italic)
        pretext="SAS Log Report for Directory{\line}&amp;amp;logdir.{\line}Run Date: &amp;amp;sysdate9."
       }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 27 Apr 2020 19:00:56 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2020-04-27T19:00:56Z</dc:date>
    <item>
      <title>New Line in ODS RTF PRETEXT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/New-Line-in-ODS-RTF-PRETEXT/m-p/643388#M23996</link>
      <description>&lt;P&gt;I am writing a report to an RTF file using ODS RTF.&amp;nbsp; I was using PDF, but it was decided that the client wanted RTF.&amp;nbsp; I am using a PRETEXT statement in PROC REPORT.&amp;nbsp; However, when I was using ODS PDF, I simply put "~n" to get a new line in the pretext text (where the tilda is my escapechar).&amp;nbsp; When I switch to RTF, that doesn't seem to work.&amp;nbsp; I just prints "~n" along with the regular text in a single line.&amp;nbsp; Is there something different I should be using?&amp;nbsp; I have tried /line/ and ~{newline}.&amp;nbsp; Neither seems to work.&amp;nbsp; Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	/*****************************************/
	/***  Create the SAS log error report  ***/
	/*****************************************/
	ods escapechar='~';
	ods listing close;
	ods rtf file="&amp;amp;outputdir.\ZCHECKLOG.rtf" style=MonoChromePrinter;
		title1 h=0.5 j=l 'Vertex Pharmaceuticals Incorporated' j=r 'Page ~{thispage}';
		proc report data=final_t center nowindows headline headskip spacing=1 split='^' missing
			style(header)={fontsize=9pt} style(report)={font=('Arial',9pt,bold italic) pretext="SAS Log Report for Directory ~n &amp;amp;logdir. ~n Run Date: &amp;amp;sysdate9."};
			column filename cat1 cat2 cat3 cat4 cat5;
			define filename / order order=data width=45 left "File Name";
			define cat1 / display center width=5 "Errors";
			define cat2 / display center width=5 "Warnings";
			define cat3 / display center width=5 "Uninitialized^Variables";
			define cat4 / display center width=5 "Merge^Notes";
			define cat5 / display center width=5 "Invalid^Data";
			compute cat1;
				if cat1&amp;gt;0 then call define(_col_,"style","style={background=red}");
			endcomp;
			compute cat2;
				if cat2&amp;gt;0 then call define(_col_,"style","style={background=red}");
			endcomp;
			compute cat3;
				if cat3&amp;gt;0 then call define(_col_,"style","style={background=yellow}");
			endcomp;
			compute cat4;
				if cat4&amp;gt;0 then call define(_col_,"style","style={background=yellow}");
			endcomp;
			compute cat5;
				if cat5&amp;gt;0 then call define(_col_,"style","style={background=yellow}");
			endcomp;
		run;
	ods rtf close;
	ods listing;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Apr 2020 18:10:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/New-Line-in-ODS-RTF-PRETEXT/m-p/643388#M23996</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2020-04-27T18:10:47Z</dc:date>
    </item>
    <item>
      <title>Re: New Line in ODS RTF PRETEXT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/New-Line-in-ODS-RTF-PRETEXT/m-p/643397#M23997</link>
      <description>&lt;P&gt;RTF commands start with backslash.&amp;nbsp; Try \line.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  style(report)={font=('Arial',9pt,bold italic)
        pretext="SAS Log Report for Directory{\line}&amp;amp;logdir.{\line}Run Date: &amp;amp;sysdate9."
       }
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 27 Apr 2020 19:00:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/New-Line-in-ODS-RTF-PRETEXT/m-p/643397#M23997</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2020-04-27T19:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: New Line in ODS RTF PRETEXT</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/New-Line-in-ODS-RTF-PRETEXT/m-p/643405#M23998</link>
      <description>&lt;P&gt;That did the trick!&amp;nbsp; There seem to be too many options.&amp;nbsp; I wish it was more consistent.&amp;nbsp; But thank you for your help!&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2020 19:28:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/New-Line-in-ODS-RTF-PRETEXT/m-p/643405#M23998</guid>
      <dc:creator>djbateman</dc:creator>
      <dc:date>2020-04-27T19:28:47Z</dc:date>
    </item>
  </channel>
</rss>

