<?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: COMPUTE BEFORE _PAGE_ Center and Left Alignment (Justification) in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421977#M20048</link>
    <description>&lt;P&gt;Thanks for the response, this did not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Dec 2017 14:04:36 GMT</pubDate>
    <dc:creator>craig159753</dc:creator>
    <dc:date>2017-12-18T14:04:36Z</dc:date>
    <item>
      <title>COMPUTE BEFORE _PAGE_ Center and Left Alignment (Justification)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421962#M20044</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to add some text before a table, using ODS and PROC REPORT and have done this,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
define mytextvar / order order=internal noprint;

compute before _page_ / style = {just=center font_weight=bold};
    line "My first title which is centered";
    line " ";
    line @1 mytextvar $200. "^S={just=left}";
endcomp;&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;However the output is a little odd and my left aligned line is not truly left aligned and looks likes this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My first tile which is centered&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;
&lt;P&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/P&gt;
&lt;P&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; My text value from MYTEXTVAR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Any idea if there is solution or a better way, I want the line "My text value from MYTEXTVAR" to be left aligned, the rest must remain the same.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please note I cannot use the TITLE statement for this.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 14:02:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421962#M20044</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2017-12-18T14:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE BEFORE _PAGE_ Center and Left Alignment (Justification)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421973#M20046</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;compute before _page_ / style = {just=center font_weight=bold};
    line "^S={just=left} My first title which is centered";
    line " ";
    line @1 mytextvar $200. ;
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 18 Dec 2017 13:40:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421973#M20046</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2017-12-18T13:40:00Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE BEFORE _PAGE_ Center and Left Alignment (Justification)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421974#M20047</link>
      <description>&lt;P&gt;I have nothing to test this on, but what about:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;    line cats("^S={just=left}",mytextvar);
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 13:41:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421974#M20047</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-18T13:41:42Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE BEFORE _PAGE_ Center and Left Alignment (Justification)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421977#M20048</link>
      <description>&lt;P&gt;Thanks for the response, this did not work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 14:04:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421977#M20048</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2017-12-18T14:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE BEFORE _PAGE_ Center and Left Alignment (Justification)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421978#M20049</link>
      <description>&lt;P&gt;Thanks for the response, this left aligns both lines, I just want the last line left aligned.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 14:06:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421978#M20049</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2017-12-18T14:06:34Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE BEFORE _PAGE_ Center and Left Alignment (Justification)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421994#M20050</link>
      <description>&lt;P&gt;FIXED IT!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The solution utilizes RTF code to achieve what I wanted.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For SAS to use RTF code, you first need to tell it you are using RTF code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;^R/RTF&amp;nbsp;- indicates RTF code&lt;/P&gt;
&lt;P&gt;\par - new paragraph, i.e. hitting ENTER on a keyboard in word.&lt;/P&gt;
&lt;P&gt;\ql - left align.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The final code looked like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;define mytextvar / order order=internal noprint;

compute before _page_ / style = {just=center font_weight=bold};
    line "My first title which is centered";
    line " ";
    line " ^R/RTF'\par\ql '" mytextvar $200.;
endcomp;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The output then looks like this&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;My first tile which is centered&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;
&lt;P&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/P&gt;
&lt;P&gt;| My text value from MYTEXTVAR&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;|&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;|&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; |&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Craig&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 14:34:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/421994#M20050</guid>
      <dc:creator>craig159753</dc:creator>
      <dc:date>2017-12-18T14:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: COMPUTE BEFORE _PAGE_ Center and Left Alignment (Justification)</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/422001#M20051</link>
      <description>&lt;P&gt;Can I point out a couple of things.&amp;nbsp; Firstly, stating "it did not work" is not helpful, what did not work?&amp;nbsp; Logs?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Secondly, mentioning the whole of the problem is a good starting point, such as you are outputting to RTF.&amp;nbsp; And also posting something which we can actual run and test things also helps.&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 15:05:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/COMPUTE-BEFORE-PAGE-Center-and-Left-Alignment-Justification/m-p/422001#M20051</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-12-18T15:05:24Z</dc:date>
    </item>
  </channel>
</rss>

