<?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: RTF Section Breaks in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/RTF-Section-Breaks/m-p/766741#M30689</link>
    <description>&lt;P&gt;Hi Ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that I am using to generate the rtf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  %*&amp;lt;---
   Titles and Footnotes 
  -----------------------&amp;gt;;
  title1 justify=l font="Times New Roman" height=9pt " ";
  title2 justify=c font="Times New Roman" height=9pt "Table 1";

  footnote1 justify=l font="Times New Roman" height=9pt "Program: t-enrol.sas"
                      justify=c font="Times New Roman" height=9pt "Table Generation: &amp;amp;datenow. &amp;amp;timenow."
                      justify=r font="Times New Roman" height=9pt "Page &amp;amp;esc.{pageof}";            
  
  %*&amp;lt;---
   ODS Properties
  -----------------&amp;gt;;
  options orientation=landscape nobyline;
   
  ods listing close;
  ods rtf file="C:\myfolder\myfilename.rtf" bookmark = "xyz.mrk" style = mystyle;
  ods escapechar="&amp;amp;esc." ;

  ods tagsets.default file=outxml(url=none) gpath="output path"; 


      proc report data=all headline nowd spacing=2 center headskip split='#' formchar(2)='_' missing 
                  out=report(where=(_break_='')) style(report)=[outputwidth=100.4%] style(column)=[just=c];

        column (p ord order1 text1 _1 _2 _3 _4 _5 _99);

        define p           / order noprint; 
        define ord         / order order=internal noprint;
        define order1      / order order=internal noprint;

        define text1       / order id  display 'Category' style(column)= [cellwidth=132pt  just=l asis=on] style(header)=[just=l asis=on];

        define _1  / display   "Treatment A"  style(column)=[cellwidth=50.8pt just=c];
        define _2  / display   "Treatment B"  style(column)=[cellwidth=50.8pt just=c];
        define _3  / display   "Treatment C"  style(column)=[cellwidth=50.8pt just=c];
        define _4  / display   "Treatment D"  style(column)=[cellwidth=50.8pt just=c];
        define _5  / display   "Treatment E"  style(column)=[cellwidth=50.8pt just=c];
        define _99 / display   "Overall"      style(column)=[cellwidth=50.8pt just=c];
        
        break after p      / page;
        compute before p;
          line @1 ' ';
        endcomp;
        compute after ord;
          line @1 ' ';
        endcomp;
      run;

      ods tagsets.default close;
      ods rtf close ;
      ods listing ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Sep 2021 01:12:28 GMT</pubDate>
    <dc:creator>Brian844</dc:creator>
    <dc:date>2021-09-09T01:12:28Z</dc:date>
    <item>
      <title>RTF Section Breaks</title>
      <link>https://communities.sas.com/t5/New-SAS-User/RTF-Section-Breaks/m-p/766729#M30684</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using proc report to generate RTF tables and&amp;nbsp;I am facing a problem where the footer section of the RTF file section break size is 12pt and I want it to be 9pt. For some reason the header section is fine and coming as 9pt. but in the footer section it is coming as 12pt.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The ODS statements below is used to generate the RTF files.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;ods rtf file="C:\myfolder\myfilename.rtf" bookmark = "xyz.mrk" style = mystyle;
ods tagsets.default file=outxml(url=none) gpath="output path";&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am also using Proc Template code to set font sizes etc..&amp;nbsp;&lt;/P&gt;&lt;P&gt;Proc template code:&lt;/P&gt;&lt;PRE&gt;&lt;FONT size="1 2 3 4 5 6 7"&gt;ODS PATH ODSTEMP.CORE(UPDATE);
PROC TEMPLATE;
  DEFINE STYLE CORE;   /* name of new style */
  PARENT=STYLES.RTF;     /* inherit characteristics from existing style*/

  /* change the below characteristics from the parent style */
  /* specify typeface, font size, font weight (e.g., bold, bold italic, etc.)*/
  REPLACE FONTS / 'titlefont2'          = ("Times New Roman",               9pt) /* Procedure titles ("The ___ Procedure") */
                  'titlefont'           = ("Times New Roman",               9pt) /* Titles from TITLE statements */
                  'Strongfont'          = ("Times New Roman",               9pt) /* Strong (more emphasized table headings and footers, page numbers */
                  'EmphasisFont'        = ("Times New Roman",               9pt) /* titles for table of contents and table of pages, emphasized table headings and footers */
                  'FixedEmphasisFont'   = ("Times New Roman",               2pt)
                  'FixedStrongFont'     = ("Times New Roman",               2pt)
                  'FixedHeadingFont'    = ("Times New Roman",               2pt)
                  'BatchFixedFont'      = ("SAS Monospace,Times New Roman", 2pt)
                  'FixedFont'           = ("Times New Roman",               2pt)
                  'headingEmphasisFont' = ("Times New Roman",               9pt)
                  'headingFont'         = ("Times New Roman",               9pt) /* Table column headings */
                  'docFont'             = ("Times New Roman",               9pt) /* Data in table cells */
                  'footFont'            = ("Times New Roman",               9pt) /* Footnotes from FOOTNOTE statements */
  ;
  /* controls the headers of a table */
  REPLACE HEADER / rules = none /* internal borders: none, all, cols, rows, groups */
                   frame = void /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
                   font  = fonts('HeadingFont')
  ;
  /* set up the page margins */
  REPLACE BODY from DOCUMENT "Controls the Body file. " / bottommargin = 1in
                                                          topmargin    = 1in
                                                          rightmargin  = 1in
                                                          leftmargin   = 1in
  ;
  /* controls table headers and footers */;
  REPLACE HEADERSANDFOOTERS from CELL  / font=fonts('HeadingFont')
                                         foreground=black
                                         background=white
  ;
  /* controls overall table syle */
  STYLE TABLE from TABLE /rules       = groups /* internal borders: none, all, cols, rows, groups */
                          frame       = hsides /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
                          cellspacing = 0pt    /* the space between table cells, allows background to show */
                          cellpadding = 1.0pt  /* the space between table cell contents and the cell border */
                          borderwidth = 0.5pt  /* the width of the borders and rules */
                          protectspecialchars = off /* determine how less-than signs (&amp;lt;), greater-than signs (&amp;gt;) and ampersands (&amp;amp;) are interpreted */
  ;

  STYLE DATA from CELL / cellpadding = 0pt /* the space between table cells, allows background to show */  
                         cellspacing = 0pt /* the space between table cell contents and the cell border */
                         protectspecialchars = off /* determine how less-than signs (&amp;lt;), greater-than signs (&amp;gt;) and ampersands (&amp;amp;) are interpreted */
                         nobreakspace = off
  ;

  STYLE DATA from OUTPUT / cellpadding = 0pt /* the space between table cells, allows background to show */  
                           cellspacing = 0pt /* the space between table cell contents and the cell border */
                           protectspecialchars = off /* determine how less-than signs (&amp;lt;), greater-than signs (&amp;gt;) and ampersands (&amp;amp;) are interpreted */
                           nobreakspace = off
  ;

  STYLE BODY         from BODY         / asis=on protectspecialchars = off ; /* controls the body file */
  STYLE HEADER       from HEADER       / asis=on protectspecialchars = off ; /* controls the headers of a table */
  STYLE SYSTEMTITLE  from SYSTEMTITLE  / asis=on protectspecialchars = off ; /* controls system title text */
  STYLE SYSTEMFOOTER from SYSTEMFOOTER / asis=on protectspecialchars = off ; /* controls system footer text */
  STYLE PARSKIP                        / fontsize = 0.1pt;
  END ; /* End the DEFINE statement*/;
RUN;&lt;/FONT&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have inserted a screenshot of the section breaks I am talking about&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="Screenshot 2021-09-02 212556.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/63414iFB1BBA5026D3CDE4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2021-09-02 212556.png" alt="Screenshot 2021-09-02 212556.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Any help will be much appreciated.&lt;/P&gt;&lt;P&gt;Cheers Brian.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 23:42:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/RTF-Section-Breaks/m-p/766729#M30684</guid>
      <dc:creator>Brian844</dc:creator>
      <dc:date>2021-09-08T23:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: RTF Section Breaks</title>
      <link>https://communities.sas.com/t5/New-SAS-User/RTF-Section-Breaks/m-p/766736#M30687</link>
      <description>&lt;P&gt;The code to generate the output looks like what? Especially the stuff going into the footer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the column headings I strongly suspect you may be using someones macro code to generate the table and that macro code may have statements over-riding the default style settings. If you are using a macro then post the code for that.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 00:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/RTF-Section-Breaks/m-p/766736#M30687</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-09T00:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: RTF Section Breaks</title>
      <link>https://communities.sas.com/t5/New-SAS-User/RTF-Section-Breaks/m-p/766741#M30689</link>
      <description>&lt;P&gt;Hi Ballardw,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that I am using to generate the rtf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;  %*&amp;lt;---
   Titles and Footnotes 
  -----------------------&amp;gt;;
  title1 justify=l font="Times New Roman" height=9pt " ";
  title2 justify=c font="Times New Roman" height=9pt "Table 1";

  footnote1 justify=l font="Times New Roman" height=9pt "Program: t-enrol.sas"
                      justify=c font="Times New Roman" height=9pt "Table Generation: &amp;amp;datenow. &amp;amp;timenow."
                      justify=r font="Times New Roman" height=9pt "Page &amp;amp;esc.{pageof}";            
  
  %*&amp;lt;---
   ODS Properties
  -----------------&amp;gt;;
  options orientation=landscape nobyline;
   
  ods listing close;
  ods rtf file="C:\myfolder\myfilename.rtf" bookmark = "xyz.mrk" style = mystyle;
  ods escapechar="&amp;amp;esc." ;

  ods tagsets.default file=outxml(url=none) gpath="output path"; 


      proc report data=all headline nowd spacing=2 center headskip split='#' formchar(2)='_' missing 
                  out=report(where=(_break_='')) style(report)=[outputwidth=100.4%] style(column)=[just=c];

        column (p ord order1 text1 _1 _2 _3 _4 _5 _99);

        define p           / order noprint; 
        define ord         / order order=internal noprint;
        define order1      / order order=internal noprint;

        define text1       / order id  display 'Category' style(column)= [cellwidth=132pt  just=l asis=on] style(header)=[just=l asis=on];

        define _1  / display   "Treatment A"  style(column)=[cellwidth=50.8pt just=c];
        define _2  / display   "Treatment B"  style(column)=[cellwidth=50.8pt just=c];
        define _3  / display   "Treatment C"  style(column)=[cellwidth=50.8pt just=c];
        define _4  / display   "Treatment D"  style(column)=[cellwidth=50.8pt just=c];
        define _5  / display   "Treatment E"  style(column)=[cellwidth=50.8pt just=c];
        define _99 / display   "Overall"      style(column)=[cellwidth=50.8pt just=c];
        
        break after p      / page;
        compute before p;
          line @1 ' ';
        endcomp;
        compute after ord;
          line @1 ' ';
        endcomp;
      run;

      ods tagsets.default close;
      ods rtf close ;
      ods listing ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Cheers B.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Sep 2021 01:12:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/RTF-Section-Breaks/m-p/766741#M30689</guid>
      <dc:creator>Brian844</dc:creator>
      <dc:date>2021-09-09T01:12:28Z</dc:date>
    </item>
  </channel>
</rss>

