<?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: TAGSETS.RTF; Margins, Page Headers, Tables, and Spacing. in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713507#M24808</link>
    <description>&lt;P&gt;Easy one first:&lt;/P&gt;
&lt;P&gt;Remove date, time and page number from the top of the page.&amp;nbsp;&amp;nbsp; OPTIONS nonumber nodate ; will turn off those features for all output until you ask for them. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely easy:&lt;/P&gt;
&lt;P&gt;Remove grey border from table, or set color to white.&lt;/P&gt;
&lt;P&gt;One way is to use a style that doesn't have outlines&lt;/P&gt;
&lt;P&gt;Another is STYLEOVERIDE in a procedure, depending on procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to describe what : Implement a half line space between title lines. means in a bit more details.&lt;/P&gt;
&lt;P&gt;I can think of different things that fit that text. One is to actually draw some sort of line. Or do you mean to set vertical space as 1.5 lines?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2021 22:14:56 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2021-01-22T22:14:56Z</dc:date>
    <item>
      <title>TAGSETS.RTF, PROC ODSTABLE, Margins, Page Headers, Tables, and Spacing.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713484#M24807</link>
      <description>&lt;P&gt;I have four goals to learn about ODS TAGSETS.RTF and or PROC TEMPLATE.&amp;nbsp; Could you, kindly, help me learn to do some of these goals using this mock document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Change all page margins to 1".&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;✓&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Remove date, time and page number from the top of the page.&amp;nbsp;&lt;SPAN&gt;✓&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Remove grey border from table, or set color to white.&amp;nbsp;&lt;SPAN&gt;✓&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;Implement a half line space between title lines.&amp;nbsp; IOW implement 0.5 line spacing, or adding spacing&amp;nbsp;before and after&amp;nbsp;paragraph.&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;✓&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&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;ods tagsets.rtf 
  style= daisy
  options (
    VSPACE='OFF'
  )
  ;

option nocenter;
title;

/*Because Proc Template is hard:*/
%let normal=font_size=11pt;
%let answer=[fontweight=bold liststyletype="none"];
%let table_answer=[fontweight=bold &amp;amp;normal];
%let systemtitle=[fontweight=bold font_size=12pt];
%let sub_title=[fontweight=bold &amp;amp;normal];
%let mid_title=[fontweight=bold font_size=14pt just=c];
%let normal=[font_size=11pt];
%let Small_line=[font_size=5pt];

proc odstext;
  p "Neque Porro Quisquam est qui Dolorem Ipsum " /style=&amp;amp;systemtitle;
  p " "/style=&amp;amp;Small_line;
  p "Quia Dolor sit Amet, Consectetur, Adipisci Velit"/style=&amp;amp;sub_title;
  p " "/style=&amp;amp;Small_line;
  p "Objectives:"/style=&amp;amp;sub_title;
  p;
  p '10A.  Mauris iaculis libero a purus eleifend viverra.'/style=&amp;amp;normal;
  p;
run;

%let question_10A_make=0;
  proc sql noprint ;
    select distinct Make, count(*)
      into :null, :question_10A_make
      from sashelp.CARS
        where Make='Acura' 
	   ;
  run;

proc odstext;
  list;
    item "%CMPRES(&amp;amp;question_10A_make)"/style=&amp;amp;answer ;
  end;
  p;
  p "Donec Sagittis Neque Quis Starting 12-2017" /style=&amp;amp;mid_title ;
  p;
  p '15B.  Lorem ipsum dolor sit amet, consectetur adipiscing elit.'/style=&amp;amp;normal;
  p;
run;

PROC FREQ DATA=sashelp.cars (obs=50);
  TABLES Make / NOPRINT out=make ;
proc odstable data=make PAGEBREAK=NO;
  column blank Make count;
  define Make ;
     format=$ENRLST.;
     PRINT_HEADERS=OFF;
  end;
  define count;
    style=&amp;amp;table_answer;
    format=3.0;
    PRINT_HEADERS=OFF;
  end;
  define column  blank;
     style={cellwidth=0.6in};
     PRINT_HEADERS=OFF;
     compute as " ";
  end;
run;

proc odstext;
  p;p;
  p "To Do:"  /style=&amp;amp;systemtitle;
  p;
  list;
    item 'Change all page margins to 1"';
    item "Revove date, time and page number from the top of the page.";
    item "Remove grey border from table, or set color to white.";
    item "Implment a half line space between title lines.";
  end;
run;
ods tagsets.rtf close;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2021 16:13:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713484#M24807</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-01-25T16:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: TAGSETS.RTF; Margins, Page Headers, Tables, and Spacing.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713507#M24808</link>
      <description>&lt;P&gt;Easy one first:&lt;/P&gt;
&lt;P&gt;Remove date, time and page number from the top of the page.&amp;nbsp;&amp;nbsp; OPTIONS nonumber nodate ; will turn off those features for all output until you ask for them. &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Likely easy:&lt;/P&gt;
&lt;P&gt;Remove grey border from table, or set color to white.&lt;/P&gt;
&lt;P&gt;One way is to use a style that doesn't have outlines&lt;/P&gt;
&lt;P&gt;Another is STYLEOVERIDE in a procedure, depending on procedures.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You will have to describe what : Implement a half line space between title lines. means in a bit more details.&lt;/P&gt;
&lt;P&gt;I can think of different things that fit that text. One is to actually draw some sort of line. Or do you mean to set vertical space as 1.5 lines?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 22:14:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713507#M24808</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-01-22T22:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: TAGSETS.RTF; Margins, Page Headers, Tables, and Spacing.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713520#M24809</link>
      <description>&lt;P&gt;Also, changing the margins should be as simple as adding the margin controls to the OPTIONS statement:&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;options &lt;FONT color="#0000FF"&gt;nodate nonumber&lt;/FONT&gt; &lt;FONT color="#FF00FF"&gt;topmargin=1in bottommargin=1in leftmargin=1in rightmargin=1in&lt;/FONT&gt;;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2021 23:12:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713520#M24809</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-01-22T23:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: TAGSETS.RTF; Margins, Page Headers, Tables, and Spacing.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713600#M24810</link>
      <description>&lt;P&gt;1. Nonumber nodate. Thanks&lt;BR /&gt;2a. Using another style means finding another style but I've looked at a gallery (&lt;A style="background-color: #ffffff; outline: 0px;" href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.5&amp;amp;docsetId=odsadvug&amp;amp;docsetTarget=p14qidvs5xf7omn14ommvsuhvmzn.htm&amp;amp;locale=en" target="_self"&gt;SAS ODS Styles Gallery&lt;/A&gt;&lt;SPAN style="font-family: inherit;"&gt;) all tables have some kind of border.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;2b. I'll look into this style overrides more.&lt;BR /&gt;3. Yes you're right, "be more specific", lol, I did mean vertical spacing. My theory failed in my attempt to make a 0.5 spaced line using font_size. There's definitely a size limit independent of how small a font_size is provided.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 18:30:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713600#M24810</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-01-24T18:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: TAGSETS.RTF; Margins, Page Headers, Tables, and Spacing.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713604#M24811</link>
      <description>&lt;P&gt;I'm finding the places in the documentation that I didn't consider when researching. Thanks.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;&lt;A href="https://documentation.sas.com/?cdcId=pgmsascdc&amp;amp;cdcVersion=9.4_3.2&amp;amp;docsetId=uprint&amp;amp;docsetTarget=n0if44l9dg4z16n1skwai3wesv5l.htm&amp;amp;locale=en" target="_blank" rel="nofollow noopener"&gt;SAS Dictionary of Printing-Related System Options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Jan 2021 18:34:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713604#M24811</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-01-24T18:34:43Z</dc:date>
    </item>
    <item>
      <title>Re: TAGSETS.RTF, PROC ODSTABLE, Margins, Page Headers, Tables, and Spacing.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713957#M24812</link>
      <description>&lt;P&gt;I found all my answers in this document.&amp;nbsp; It was very helpful.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://support.sas.com/resources/papers/proceedings/proceedings/sugi29/125-29.pdf" target="_self"&gt;"SAS with Style: Creating your own ODS Style Template for RTF Output"&amp;nbsp; Lauren Haworth&lt;/A&gt;,&amp;nbsp;May 2004, Sugi 29.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Working with templates is usually never easy, but it ended out being very easy.&amp;nbsp; I couldn't believe it&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Correction&lt;/STRONG&gt;: &lt;EM&gt;I have updated this so that it conforms with the standard that does not use the deprecated "replace" and instead used "class".&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods path reset;
    ods path(REMOVE) SASUSER.templat;
    ods path(PREPEND) Work.templat(update); 

proc template;
  define style Styles.Custom;
    parent = Styles.RTF;
    class fonts /
      'docFont' = ("Arial",11pt) /* Data in table cells */
      ;
    class Table from Output /
      frame = VOID /* outside borders: void, box, above/below, vsides/hsides, lhs/rhs */
      rules = NONE /* internal borders: none, all, cols, rows, groups */
      cellpadding = 2pt /* the space between table cell contents and the cell border */
      cellspacing = 0pt /* the space between table cells, allows background to show */
      borderwidth = 0pt /* the width of the borders and rules */
    ; 
    class Body from Document /
      bottommargin = 1in
      topmargin    = 1in
      rightmargin  = 1in
      leftmargin   = 1in
    ; 
  end;
run;

option nocenter nodate nonumber ;
title;

%let normal=font_size=11pt;
%let answer=[fontweight=bold Leftmargin=0.6in ];
%let table_answer=[fontweight=bold &amp;amp;normal];
%let systemtitle=[fontweight=bold font_size=12pt];
%let sub_title=[fontweight=bold &amp;amp;normal];
%let mid_title=[fontweight=bold font_size=14pt just=c];
%let normal=[font_size=11pt];
%let Small_line=[font_size=5pt];

ods tagsets.rtf 
  style= Styles.Custom /*Changed*/
  options (
    VSPACE='OFF'
  )
  ;

proc odstext;
  p "Neque Porro Quisquam est qui Dolorem Ipsum " /style=&amp;amp;systemtitle;
  p " "/style=&amp;amp;Small_line;
  p "Quia Dolor sit Amet, Consectetur, Adipisci Velit"/style=&amp;amp;sub_title;
  p " "/style=&amp;amp;Small_line;
  p "Objectives:"/style=&amp;amp;sub_title;
  p;
  p '10A.  Mauris iaculis libero a purus eleifend viverra.'/style=&amp;amp;normal;
  p;
run;

/* ... */&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;s&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Jan 2021 17:20:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/713957#M24812</guid>
      <dc:creator>PhilC</dc:creator>
      <dc:date>2021-01-26T17:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: TAGSETS.RTF, PROC ODSTABLE, Margins, Page Headers, Tables, and Spacing.</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/714008#M24813</link>
      <description>Hi:&lt;BR /&gt;  Athough Lauren's paper is an excellent paper, it was written before SAS 9.2 changed the template syntax. The REPLACE statement was deprecated and should no longer be used starting with SAS 9.2. Instead of REPLACE, you should use the CLASS or STYLE statement, as outlined in this paper: &lt;A href="https://support.sas.com/resources/papers/proceedings10/033-2010.pdf" target="_blank"&gt;https://support.sas.com/resources/papers/proceedings10/033-2010.pdf&lt;/A&gt;.  &lt;BR /&gt;Cynthia</description>
      <pubDate>Mon, 25 Jan 2021 17:56:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/TAGSETS-RTF-PROC-ODSTABLE-Margins-Page-Headers-Tables-and/m-p/714008#M24813</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2021-01-25T17:56:07Z</dc:date>
    </item>
  </channel>
</rss>

