<?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: Tabulate &amp;amp; Template Issues in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394891#M19315</link>
    <description>&lt;P&gt;This works for the cell directly above the total row header ('3 Year Total') but not the rest of the row.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 20:38:35 GMT</pubDate>
    <dc:creator>laura6728</dc:creator>
    <dc:date>2017-09-11T20:38:35Z</dc:date>
    <item>
      <title>Tabulate &amp; Template Issues</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394832#M19310</link>
      <description>&lt;P&gt;Hello, I have &amp;nbsp;PDF that is generated and produces several tables using proc tabulate that look simliar to the graphic below. I am trying to get a border to appear between the last 2 rows (2016 &amp;amp; Total), however I cannot get this work. I have tried adding the style directly to the 'all' portion of the tabulate, but it does not work. I am thinking there is a setting in my template that is preventing it. Any assistance or pointing the in right direction is much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Current Output:&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="snip.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/15006i12CF9A077FA6465D/image-size/large?v=v2&amp;amp;px=999" role="button" title="snip.PNG" alt="snip.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my template code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC TEMPLATE;
	DEFINE STYLE HighSchoolRTF;
	PARENT=styles.rtf;


	replace fonts / 
    'TitleFont'     = ("Arial",12pt,Bold) /* TITLE statement */ 
    'TitleFont2'    = ("Arial",10pt,Bold) /* PROC titles */ 
    'headingFont'   = ("Arial",10pt) /* Table column/row headings */ 
    'docFont'       = ("Arial",10pt)      /* data in table cells */ 
    'footFont'      = ("Arial",8pt)       /* FOOTNOTE statements */ 
    'StrongFont'    = ("Arial",10pt,Bold) 
    'EmphasisFont'  = ("Arial",10pt,Italic) 
    'headingEmphasisFont'= ("Arial",10pt,Italic) 
    'FixedFont'          = ("Arial",10pt) 
    'FixedEmphasisFont'  = ("Arial",10pt,Italic) 
    'FixedStrongFont'    = ("Arial",10pt,Bold) 
    'FixedHeadingFont'   = ("Arial",10pt) 
    'BatchFixedFont'     = ("Arial",10pt) ; 

	style table from table / 
    background=_UNDEF_ /* REMOVES TABLE BACKGROUND COLOR */ 
    rules=groups      /* INTERNAL BORDERS: SET TO BOTTOM BORDER ON ROW HEADERS */ 
    frame=above       /* EXTERNAL BORDERS: SET TO TOP LINE OF TABLE ONLY */ 
    cellspacing=0      /* SPACE BETWEEN TABLE CELLS */ 
    cellpadding=1     /* REMOVES PARAGRAPH SPACING BEFORE/AFTER CELL CONTENTS */ 
    borderwidth=1pt; /* SET WIDTH OF BORDER IN FRAME= */ 

	style headerrow from data /
		backgroundcolor=grayaa;

	replace HeadersAndFooters from Cell / 
    background = _undef_  
    font = Fonts('headingFont') ; 

 	replace SystemFooter from TitlesAndFooters / 
     font = Fonts('footFont') 
     just = LEFT ;   

	replace Body from Document / 
    bottommargin = .5in 
    topmargin    = .5in 
    rightmargin  = .5in 
    leftmargin   = .5in ; 

	/*replace usertext from usertext /
		font = Fonts('StrongFont')
		just = LEFT;*/

	  end ;  /* END OF DEFINE STYLE MyStyleRTF */ 
run ;    /* END OF PROC TEMPLATE */ &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is my tabulate code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC TABULATE
DATA=WORK.GRADUATES;
WHERE SCHOOL = "&amp;amp;SCHOOL" AND yearofHSGraduation IN(&amp;amp;YEAR.,&amp;amp;PYEAR.,&amp;amp;PYEAR2.);

	VAR TOTAL;
	CLASS SEX /	ORDER=UNFORMATTED MISSING;
	CLASS yearofHSGraduation /	ORDER=UNFORMATTED MISSING;
	CLASS SCHOOL /	ORDER=UNFORMATTED MISSING;
	TABLE 
		/* ROW Statement */
		yearofHSGraduation={LABEL=""} 
		all={label='3 Year Total'/*s=[bordertopcolor=black bordertopwidth=1px]}*[style=[bordertopcolor=black bordertopwidth=1px]]*/},
		/* COLUMN Statement */
		SEX={LABEL=""}*[S=[CELLWIDTH=.75IN JUST=C]] *(TOTAL={LABEL=""} * N={LABEL="#"} TOTAL={LABEL=""} * RowPctN={LABEL="%"}*f=PCTFMT.)
		all = 'Total'*[S=[CELLWIDTH=.75IN JUST=C]]  *(TOTAL={LABEL=""} * N={LABEL="#"} TOTAL={LABEL=""} * RowPctN={LABEL="%"}*f=PCTFMT. ) ;;
FORMAT SEX $SEX.;
RUN;
RUN; QUIT;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 18:07:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394832#M19310</guid>
      <dc:creator>laura6728</dc:creator>
      <dc:date>2017-09-11T18:07:45Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate &amp; Template Issues</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394834#M19311</link>
      <description>&lt;P&gt;Sorry, where exactly are you trying to have the line drawn? Between the 2016 and 3 year total?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 18:06:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394834#M19311</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-11T18:06:36Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate &amp; Template Issues</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394838#M19312</link>
      <description>&lt;P&gt;Yes, between 2016 &amp;amp; Total, sorry! I just corrected my post to reflect that.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 18:08:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394838#M19312</guid>
      <dc:creator>laura6728</dc:creator>
      <dc:date>2017-09-11T18:08:18Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate &amp; Template Issues</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394872#M19313</link>
      <description>&lt;P&gt;Without data it is hard to test specifics but I would strongly suggest not using PX for a unit as it is display dependant. I am not at all sure how PDF might render PX when pixels are much more of a monitor/display driver related measure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&lt;/P&gt;
&lt;P&gt;bordertopwidth=1pt&lt;/P&gt;
&lt;P&gt;instead.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 19:38:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394872#M19313</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-11T19:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate &amp; Template Issues</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394891#M19315</link>
      <description>&lt;P&gt;This works for the cell directly above the total row header ('3 Year Total') but not the rest of the row.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 20:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394891#M19315</guid>
      <dc:creator>laura6728</dc:creator>
      <dc:date>2017-09-11T20:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Tabulate &amp; Template Issues</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394930#M19316</link>
      <description>&lt;P&gt;1) Provide some data or use one of the standard SAS supplied data sets so we have something to test code with.&lt;/P&gt;
&lt;P&gt;2) Post the exact code you used. In this example the overline appears over all of the statistics requested and row header:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=sashelp.class style=styles.rtf;
   class sex;
   var height;
   table sex
         all*{s=[ bordertopcolor=black bordertopwidth=1pt] },
         height * (max min mean)
         ;

   keyword all/ style=[bordertopcolor=black bordertopwidth=1pt];
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Sep 2017 22:08:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Tabulate-amp-Template-Issues/m-p/394930#M19316</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-09-11T22:08:46Z</dc:date>
    </item>
  </channel>
</rss>

