<?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: ODS Report RTF Pretext Justification? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772813#M25339</link>
    <description>will any of those options allow me to have the text 'attached' to the table?  So that when the table is copied and pasted to another location, the title will go along with it?</description>
    <pubDate>Thu, 07 Oct 2021 17:05:13 GMT</pubDate>
    <dc:creator>mcook</dc:creator>
    <dc:date>2021-10-07T17:05:13Z</dc:date>
    <item>
      <title>ODS Report RTF Pretext Justification?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772766#M25337</link>
      <description>&lt;P&gt;In the following code, i have a pretext to appear above the table.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If Run as is, it centers the pretext above the table, with the table in the center of the page.&lt;/P&gt;
&lt;P&gt;If 'Just=Left' is uncommented, the pretext appears where I want it in relation to the table. But it does this only by left justifying the table, and pretext, to the left of the page.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to get the pretext to be left justified to the table itself, regardless of the position of the table on the page?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods rtf file="C:\FilePath\TestRTF.rtf";
ODS escapechar='^';
options nodate nonumber;
proc report data=SASHELP.Class spanrows split='~'

Style(Report) = [Rules=Rows Frame=HSides 
					pretext='Table1.1 Temp Title'
/*					just=left*/
					font=('Times New Roman', 12pt, bold)];

Column Sex Name Age Height Weight;
Define Sex / Group Center style(column)=[Vjust=Center];
Define Name / style=[borderleftwidth=1pt] 
				style(Header)=[borderleftwidth=1pt borderleftcolor=black
								borderrightwidth=1pt	borderrightcolor=graybb ]
				Display 'Student~Name'
				CENTER;
Define Age /  style=[borderrightwidth=1pt]
				style(Header)=[borderleftwidth=1pt borderleftcolor=graybb 
								borderrightwidth=1pt borderrightcolor=black]
								style(Column)=[CellWidth=0.70in]
								display
				CENTER ;
Define Height / Style(Column)=[CellWidth=0.75in]
				style(Header)=[borderrightcolor=graybb borderleftcolor=black]
				CENTER;
Define Weight / Style(Column)=[CellWidth=0.75in] 
				style(Header)=[borderleftcolor=graybb borderrightcolor=black]
				display '^{style[fontstyle=italic]Weight}^'
				CENTER;
run;
ods rtf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 07 Oct 2021 14:47:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772766#M25337</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-07T14:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Report RTF Pretext Justification?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772799#M25338</link>
      <description>Hi:&lt;BR /&gt;  My tendency would be to use COMPUTE BEFORE _PAGE_ / style={just=c} or to use a TITLE or to use ODS RTF TEXT= -- all of which provide ways for you to control the style of the text you write out. PRETEXT is harder to control.&lt;BR /&gt;&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 07 Oct 2021 15:45:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772799#M25338</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-07T15:45:37Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Report RTF Pretext Justification?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772813#M25339</link>
      <description>will any of those options allow me to have the text 'attached' to the table?  So that when the table is copied and pasted to another location, the title will go along with it?</description>
      <pubDate>Thu, 07 Oct 2021 17:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772813#M25339</guid>
      <dc:creator>mcook</dc:creator>
      <dc:date>2021-10-07T17:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Report RTF Pretext Justification?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772865#M25342</link>
      <description>If that's what you want, then I would recommend COMPUTE BEFORE _PAGE_.&lt;BR /&gt;Cynthia</description>
      <pubDate>Thu, 07 Oct 2021 19:41:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772865#M25342</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-10-07T19:41:08Z</dc:date>
    </item>
    <item>
      <title>Re: ODS Report RTF Pretext Justification?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772892#M25345</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319809"&gt;@mcook&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13549"&gt;@Cynthia_sas&lt;/a&gt;&amp;nbsp;has a solution for&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/319809"&gt;@mcook&lt;/a&gt;&amp;nbsp;'s request, but a simple solution for this one would be something like a change in your code:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;pretext='\ql Table1.1 Temp Title\line'&lt;/PRE&gt;
&lt;P&gt;The control word \ql will put the title line on the left, while \qr will do the right alignment.&amp;nbsp; You guess it, \qc will do the center alignment, but that would be default for PRETEXT.&amp;nbsp; I also took the liberty of adding a line of space between the title line and the table, which is achieved by&amp;nbsp; the control word \line.&amp;nbsp; You can have more space by adding more \line, or none by deleting it completely.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many Thanks&lt;/P&gt;
&lt;P&gt;Jianmin Long&lt;/P&gt;</description>
      <pubDate>Thu, 07 Oct 2021 22:03:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/ODS-Report-RTF-Pretext-Justification/m-p/772892#M25345</guid>
      <dc:creator>Jianmin</dc:creator>
      <dc:date>2021-10-07T22:03:05Z</dc:date>
    </item>
  </channel>
</rss>

