<?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: Proc Tabulate Column Boarders in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300189#M16967</link>
    <description>&lt;P&gt;I am using the following style and&amp;nbsp;destination code:&lt;/P&gt;
&lt;PRE&gt;ods rtf file="\\PATH\SUMMARY.RTF"
startpage=no;&lt;/PRE&gt;
&lt;P&gt;And yes, that code did create the output in the picture. &amp;nbsp;The TOTAL you are seeing is a variable named 'TOTAL', not total in the sense of a calcuation. &amp;nbsp;The variable TOTAL is what we use in our office for a variable that always =1 to do our calcuations on.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2016 18:57:17 GMT</pubDate>
    <dc:creator>laura6728</dc:creator>
    <dc:date>2016-09-22T18:57:17Z</dc:date>
    <item>
      <title>Proc Tabulate Column Boarders</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300150#M16961</link>
      <description>&lt;P&gt;Hello everyone! I am not sure if it is possible, but I have the code below that is producing the output to rtf in the image attached titled capture.&amp;nbsp; I am wanting to produce the second image (capture2) with a boarder between column groups.&amp;nbsp; If this is possible, can you point me in the direction of what I need to be looking for?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;PROC TABULATE
DATA=WORK.ENROLLED_DC S=[JUST=C];

	VAR TOTAL;
	CLASS location / ORDER=UNFORMATTED MISSING;
	CLASS highSchoolName /	ORDER=UNFORMATTED MISSING;
	TABLE 
		/* ROW Statement */
		highSchoolName={LABEL="" S=[CELLWIDTH=2.5in]} 
		all = 'Total'  ,
		/* COLUMN Statement */
		location={LABEL=""} *(TOTAL={LABEL=""} * N={LABEL="#" S=[CELLWIDTH=.6IN]}*f=comma6. TOTAL={LABEL=""} * RowPctN={LABEL="%" S=[CELLWIDTH=.6IN]}*f=PCTFMT. )
		all = 'Total'  *(TOTAL={LABEL=""} * N={LABEL="#" S=[CELLWIDTH=.6IN]}*f=comma6. TOTAL={LABEL=""} * RowPctN={LABEL="%" S=[CELLWIDTH=.6IN]}*f=PCTFMT. ) ;;
FORMAT location $LOCATION.;
RUN;
RUN; QUIT;
&lt;/PRE&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13002i80E75BD6C8DE0AC2/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture.JPG" title="Capture.JPG" /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/13003i6A719263C23D3699/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Capture2.JPG" title="Capture2.JPG" /&gt;</description>
      <pubDate>Thu, 22 Sep 2016 16:11:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300150#M16961</guid>
      <dc:creator>laura6728</dc:creator>
      <dc:date>2016-09-22T16:11:15Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Column Boarders</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300163#M16962</link>
      <description>&lt;P&gt;Which ODS style and destination are you using?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm not quite sure I believe that your posted tabulate code creates the first example. You have TOTAL in several places that I would expect to generate an error of undefined variable (Class or Var).&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 17:30:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300163#M16962</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-22T17:30:38Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Column Boarders</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300189#M16967</link>
      <description>&lt;P&gt;I am using the following style and&amp;nbsp;destination code:&lt;/P&gt;
&lt;PRE&gt;ods rtf file="\\PATH\SUMMARY.RTF"
startpage=no;&lt;/PRE&gt;
&lt;P&gt;And yes, that code did create the output in the picture. &amp;nbsp;The TOTAL you are seeing is a variable named 'TOTAL', not total in the sense of a calcuation. &amp;nbsp;The variable TOTAL is what we use in our office for a variable that always =1 to do our calcuations on.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 18:57:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300189#M16967</guid>
      <dc:creator>laura6728</dc:creator>
      <dc:date>2016-09-22T18:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Column Boarders</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300218#M16968</link>
      <description>&lt;P&gt;Sorry about the Total variable miss. I didn't see it as I NEVER put var statemets second and just couldn't see it...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since I don't have your data this produces what I think your looking for.&lt;/P&gt;
&lt;P&gt;Note that use of LABEL can affect what the styles are applied to.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods html style=rtf;
data work.class;
   set sashelp.class;
   total=1;
run;

proc tabulate data=work.class;
   class age;
   class sex;
   classlev sex /s= [borderleftwidth=1 borderleftcolor=black borderleftstyle=solid];
   var total;
   keyword n / s=[borderleftwidth=1 borderleftcolor=black borderleftstyle=solid];
   table age all='Total', 
         sex="" *Total="" *
                            (n="#"*{ S=[borderleftwidth=1 borderleftcolor=black borderleftstyle=solid CELLWIDTH=.6IN]}*f=comma6. 
                             rowpctn="%"*{ S=[CELLWIDTH=.6IN]})
         all={label='Total' s=[ borderleftwidth=1 borderleftcolor=black borderleftstyle=solid]}*Total="" *
                            (n="#"*{ S=[borderleftwidth=1 borderleftcolor=black borderleftstyle=solid CELLWIDTH=.6IN]}*f=comma6. 

                             rowpctn="%"*{ S=[CELLWIDTH=.6IN]})
   /misstext=' ';
run; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You might want to use a macro variable to hold the common style elements to make the code a tad easier to read and modify since the same code has to appear in different places to address the border of the Class variable, the header for the statistic&amp;nbsp; and the tabled values.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 20:50:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300218#M16968</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-09-22T20:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate Column Boarders</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300227#M16969</link>
      <description>&lt;P&gt;That worked perfectly, thank you so much!&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2016 21:12:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-Column-Boarders/m-p/300227#M16969</guid>
      <dc:creator>laura6728</dc:creator>
      <dc:date>2016-09-22T21:12:30Z</dc:date>
    </item>
  </channel>
</rss>

