<?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: SAS ODS Excel Proc Tabulate Border Thickness by group in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/377640#M18962</link>
    <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this isn't too late.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&amp;nbsp;adding the following formats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	VALUE $CHANNELleftborder
		'chn1'='red'
		'chn2' = ' '
;

	VALUE $CHANNELrightborder 
		'chn1'=' '
		'chn2' = 'red'
;

	VALUE $CHANNELleftwidth 
		'chn1'='1'
		'chn2' = '0.1'
;

	VALUE $CHANNELrightwidth
		'chn1'='0.1'
		'chn2' = '1'
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;and then the following code in the proc report:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;CODE class=" language-sas"&gt;CLASSLEV LEVEL/STYLE=[BACKGROUND=LILG JUST=C VJUST=C FONTSIZE=3.7 FONT_FACE='Arial' TAGATTR="WRAP:NO" bordertopcolor=red borderleftcolor=red borderrightcolor=red bordertopwidth=1 borderrightwidth=1 borderleftwidth=1 borderbottomwidth=0.1];

CLASSLEV CHANNEL/STYLE=[JUST=C VJUST=C FONTSIZE=3.5 FONT_FACE='Arial' BACKGROUND=$CHANNELcolor. 
    borderleftcolor=$CHANNELleftborder. borderrightcolor=$CHANNELrightborder. borderleftwidth=$CHANNELleftwidth. borderrightwidth=$CHANNELrightwidth. TAGATTR="WRAP:NO"];
&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;This should give what you want in excel.&amp;nbsp; It may not look right on the screen though.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Note that in ODS EXCEL borderwidths or 0-0.29 gives thin borders, 0.3 to 0.49 gives medium borders and 0.5-high gives thick borders.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Hope it helps.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Note that getting the bottom border for that whole area, or for a table in general is tricky but hopefully the borders this provides will help.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 20 Jul 2017 04:12:39 GMT</pubDate>
    <dc:creator>ABritinAus</dc:creator>
    <dc:date>2017-07-20T04:12:39Z</dc:date>
    <item>
      <title>SAS ODS Excel Proc Tabulate Border Thickness by group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/375157#M18947</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am creating a report using proc tabulate in SAS Studio 9.4. Below is the sample code that I run:&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;DATA EXAMPLE;
INPUT LOCK $3. MONTH_TYPE $ LEVEL $ CHANNEL $ PPL;
DATALINES;
May Type1 lvl1 chn1 200
May Type1 lvl1 chn1 30
May Type2 lvl1 chn1 4
May Type2 lvl1 chn1 45
Jun Type1 lvl1 chn1 67
Jun Type1 lvl1 chn1 1
Jun Type2 lvl1 chn1 6
Jun Type2 lvl1 chn1 8
May Type1 lvl1 chn2 76
May Type1 lvl1 chn2 45
May Type2 lvl1 chn2 90
May Type2 lvl1 chn2 76
Jun Type1 lvl1 chn2 56
Jun Type1 lvl1 chn2 67
Jun Type2 lvl1 chn2 90
Jun Type2 lvl1 chn2 43
May Type1 lvl2 chn1 66
May Type1 lvl2 chn1 55
May Type2 lvl2 chn1 33
May Type2 lvl2 chn1 22
Jun Type1 lvl2 chn1 34
Jun Type1 lvl2 chn1 23
Jun Type2 lvl2 chn1 76
Jun Type2 lvl2 chn1 87
May Type1 lvl2 chn2 100
May Type1 lvl2 chn2 56
May Type2 lvl2 chn2 13
May Type2 lvl2 chn2 27
Jun Type1 lvl2 chn2 26
Jun Type1 lvl2 chn2 45
Jun Type2 lvl2 chn2 87
Jun Type2 lvl2 chn2 91
;
RUN;

PROC FORMAT;
	VALUE $CHANNELfmt
		'chn1'='Channel1'
		'chn2'='Channel2'
;
	VALUE $CHANNELcolor 
		'chn1'='White'
		'chn2' = 'GWH'
;
RUN;


/* ODS EXCEL FILE="....example.xlsx" */
/*  */
/*    OPTIONS */
/* 	( */
/* 	ABSOLUTE_COLUMN_WIDTH='15' */
/* 	ABSOLUTE_ROW_HEIGHT='20' */
/*    	SHEET_INTERVAL="NONE" */
/*     SHEET_LABEL="Test" */
/*     ); */

	PROC TABULATE DATA=EXAMPLE S=[JUST=C VJUST=C TAGATTR="WRAP:NO"];
	CLASS MONTH_TYPE LOCK LEVEL CHANNEL;
	CLASSLEV MONTH_TYPE/STYLE=[FONT_STYLE=ITALIC JUST=R VJUST=C FONT_FACE='Arial' TAGATTR="WRAP:NO"];
	CLASSLEV LEVEL/STYLE=[BACKGROUND=LILG JUST=C VJUST=C FONTSIZE=3.7 FONT_FACE='Arial' TAGATTR="WRAP:NO"];
	CLASSLEV LOCK/STYLE=[JUST=C VJUST=C FONTSIZE=3 FONT_FACE='Arial' TAGATTR="WRAP:NO" BACKGROUND=YWH];
	CLASSLEV CHANNEL/STYLE=[JUST=C VJUST=C FONTSIZE=3.5 FONT_FACE='Arial' BACKGROUND=$CHANNELcolor. TAGATTR="WRAP:NO"];
	FORMAT CHANNEL $CHANNELfmt. LEVEL $LEVEL.;
	VAR PPL/STYLE=&amp;lt;PARENT&amp;gt;;
	TABLE 
	MONTH_TYPE=''*LOCK='',
	LEVEL=''*CHANNEL=''*PPL='' *F=COMMA10.*[STYLE=&amp;lt;PARENT&amp;gt;[FONTSIZE=2 FONT_FACE='Arial' TAGATTR="WRAP:NO"]]
	/RTS=25 ROW=FLOAT 
	BOX=[LABEL="Test" STYLE=[FONTSIZE=3.7 FONT_FACE='Arial' BACKGROUND=BIGB FOREGROUND=WHITE TAGATTR="WRAP:NO"]];
	KEYLABEL SUM=' ';
	KEYWORD SUM/STYLE=&amp;lt;PARENT&amp;gt;;
	RUN;
	
/* ODS EXCEL CLOSE;	 */
	&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I commented out excel output portion of it but it works well and I get Excel file. I want to have thick borders around class variable level. In other words I get:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10272i988ACFD1DDD72623/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="get.png" title="get.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I would like to have this:&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10273iBB9971F290C84E23/image-size/original?v=1.0&amp;amp;px=-1" border="0" alt="want.png" title="want.png" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It does not have to be red, I want to have a more readable report that separates lvl1 and lvl2 with thicker borders. Can anyone help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Regina.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 22:50:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/375157#M18947</guid>
      <dc:creator>Reg1na</dc:creator>
      <dc:date>2017-07-11T22:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS Excel Proc Tabulate Border Thickness by group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/377640#M18962</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this isn't too late.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Try&amp;nbsp;adding the following formats:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;	VALUE $CHANNELleftborder
		'chn1'='red'
		'chn2' = ' '
;

	VALUE $CHANNELrightborder 
		'chn1'=' '
		'chn2' = 'red'
;

	VALUE $CHANNELleftwidth 
		'chn1'='1'
		'chn2' = '0.1'
;

	VALUE $CHANNELrightwidth
		'chn1'='0.1'
		'chn2' = '1'
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;and then the following code in the proc report:&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;CODE class=" language-sas"&gt;CLASSLEV LEVEL/STYLE=[BACKGROUND=LILG JUST=C VJUST=C FONTSIZE=3.7 FONT_FACE='Arial' TAGATTR="WRAP:NO" bordertopcolor=red borderleftcolor=red borderrightcolor=red bordertopwidth=1 borderrightwidth=1 borderleftwidth=1 borderbottomwidth=0.1];

CLASSLEV CHANNEL/STYLE=[JUST=C VJUST=C FONTSIZE=3.5 FONT_FACE='Arial' BACKGROUND=$CHANNELcolor. 
    borderleftcolor=$CHANNELleftborder. borderrightcolor=$CHANNELrightborder. borderleftwidth=$CHANNELleftwidth. borderrightwidth=$CHANNELrightwidth. TAGATTR="WRAP:NO"];
&lt;/CODE&gt;&lt;/FONT&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;This should give what you want in excel.&amp;nbsp; It may not look right on the screen though.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Note that in ODS EXCEL borderwidths or 0-0.29 gives thin borders, 0.3 to 0.49 gives medium borders and 0.5-high gives thick borders.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Hope it helps.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;Note that getting the bottom border for that whole area, or for a table in general is tricky but hopefully the borders this provides will help.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 04:12:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/377640#M18962</guid>
      <dc:creator>ABritinAus</dc:creator>
      <dc:date>2017-07-20T04:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS Excel Proc Tabulate Border Thickness by group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/377865#M18974</link>
      <description>Thank you very much, I really appreciate it. It works well and gives desired result!</description>
      <pubDate>Thu, 20 Jul 2017 18:04:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/377865#M18974</guid>
      <dc:creator>Reg1na</dc:creator>
      <dc:date>2017-07-20T18:04:35Z</dc:date>
    </item>
    <item>
      <title>Re: SAS ODS Excel Proc Tabulate Border Thickness by group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/377882#M18975</link>
      <description>&lt;P&gt;I wonder if there is an option that makes outside table borders thick. That way my borderbottomwidth issue would be resolved.. I am looking at frame= and rules= but it doesn't seem to be working&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jul 2017 18:33:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-ODS-Excel-Proc-Tabulate-Border-Thickness-by-group/m-p/377882#M18975</guid>
      <dc:creator>Reg1na</dc:creator>
      <dc:date>2017-07-20T18:33:56Z</dc:date>
    </item>
  </channel>
</rss>

