<?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: Border after every group in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Border-after-every-group/m-p/592214#M23344</link>
    <description>&lt;P&gt;Currently I see the below outputs for pg2 and pg1&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pg2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32772i01BAD769B8688B11/image-size/large?v=v2&amp;amp;px=999" role="button" title="pg2.PNG" alt="pg2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pg1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32773i854D65E650258029/image-size/large?v=v2&amp;amp;px=999" role="button" title="pg1.PNG" alt="pg1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I meant after every metric(which has region values)..below is how I WANT page 2 to look.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="I want the border after every group of metric" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32769iBAB928763A21DAC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pg2_WANT.PNG" alt="I want the border after every group of metric" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;I want the border after every group of metric&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Sep 2019 15:46:31 GMT</pubDate>
    <dc:creator>new_sas_user_4</dc:creator>
    <dc:date>2019-09-27T15:46:31Z</dc:date>
    <item>
      <title>Border after every group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Border-after-every-group/m-p/592197#M23342</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Using the code below I am able to get the border after every region in the first page.&lt;/P&gt;&lt;P&gt;I would like to have border after every region on page 2 as well.&lt;/P&gt;&lt;P&gt;How can I have this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data raw_data1;&lt;BR /&gt;length metric $7 dimension1 $12 ;&lt;BR /&gt;input metric $ dimension1 $ Col_A Col_B Col_C Col_D Col_E Col_F Col_X Col_Y Col_Z ;&lt;BR /&gt;datalines;&lt;BR /&gt;Ontario Total 100 0.67 0.70 400 100 250 50 500 0.21&lt;BR /&gt;Alberta Total 70 0.65 0.56 200 60 150 40 400 0.23&lt;BR /&gt;Ontario Total_split1 40 0.51 0.75 250 70 140 40 300 0.22&lt;BR /&gt;Alberta Total_split1 30 0.45 0.72 120 30 120 10 130 0.26&lt;BR /&gt;Ontario Total_split2 60 0.37 0.75 150 30 110 10 200 0.23&lt;BR /&gt;Alberta Total_split2 40 0.29 0.77 80 30 30 30 270 0.04&lt;BR /&gt;Ontario Total_splitA 20 0.21 0.80 100 30 90 10 120 0.25&lt;BR /&gt;Alberta Total_splitA 10 0.13 0.82 90 10 50 10 100 0.04&lt;BR /&gt;Ontario Total_splitB 20 0.05 0.85 150 40 100 10 130 0.26&lt;BR /&gt;Alberta Total_splitB 20 0.45 0.87 80 20 60 12 70 0.86&lt;BR /&gt;Ontario Total_splitC 50 0.85 0.90 30 10 10 20 100 0.35&lt;BR /&gt;Alberta Total_splitC 30 1.25 0.92 10 12 15 5 80 2.82&lt;BR /&gt;Ontario Total_splitD 10 1.65 0.95 -50 -10 50 10 150 0.56&lt;BR /&gt;Alberta Total_splitD 10 2.05 0.97 20 18 25 13 150 1.12&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;data raw_data2;&lt;BR /&gt;length metric $7 dimension1 $12 ;&lt;BR /&gt;input metric $ dimension1 $ Col_A Col_B Col_C Col_D Col_E Col_F Col_X Col_Y Col_Z ;&lt;BR /&gt;datalines;&lt;BR /&gt;Ontario Total_splitD 40 0.51 0.75 250 70 140 40 300 0.22&lt;BR /&gt;Ontario SPlit_E 30 0.45 0.72 120 30 120 10 130 0.26&lt;BR /&gt;Ontario Split_F 60 0.37 0.75 150 30 110 10 200 0.23&lt;BR /&gt;Ontario Split_X 60 0.37 0.75 150 30 110 10 200 0.23&lt;BR /&gt;Alberta Total_splitD 40 0.29 0.77 80 30 30 30 270 0.04&lt;BR /&gt;Alberta SPlit_E 20 0.21 0.80 100 30 90 10 120 0.25&lt;BR /&gt;Alberta SPlit_F 10 0.13 0.82 90 10 50 10 100 0.04&lt;BR /&gt;Alberta Split_X 10 0.13 0.82 90 10 50 10 100 0.04&lt;BR /&gt;Sask Total_splitD 20 0.05 0.85 150 40 100 10 130 0.26&lt;BR /&gt;Sask split_E 20 0.45 0.87 80 20 60 12 70 0.86&lt;BR /&gt;Sask split_F 50 0.85 0.90 30 10 10 20 100 0.35&lt;BR /&gt;Sask Split_X 50 0.85 0.90 30 10 10 20 100 0.35&lt;BR /&gt;Manitoba Total_splitD 30 1.25 0.92 10 12 15 5 80 2.82&lt;BR /&gt;Manitoba split_E 10 1.65 0.95 -50 -10 50 10 150 0.56&lt;BR /&gt;Manitoba split_F 10 2.05 0.97 20 18 25 13 150 1.12&lt;BR /&gt;Manitoba Split_X 10 2.05 0.97 20 18 25 13 150 1.12&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%macro pg(table_name);&lt;BR /&gt;proc report data=&amp;amp;table_name spanrows&lt;BR /&gt;style(report)=[cellspacing=0 cellpadding=0.5 frame = box rules=groups bordercolor=black font=(Arial, 7pt, bold)]&lt;BR /&gt;style(header)=[foreground=black&lt;BR /&gt;font=(Arial, 7pt, bold) borderbottomwidth=0 bordertopwidth=0 borderrightwidth=0 borderleftwidth=0 bordercolor=black NOBREAKSPACE=ON ]&lt;BR /&gt;style(column)=[font=(Arial, 7pt) foreground=black background=CXFFFFFF JUST = C VJUST=C bordertopwidth=0 borderrightwidth=0 borderleftwidth=0 bordercolor=white ];&lt;BR /&gt;Columns&lt;BR /&gt;metric dimension1&lt;BR /&gt;("Count" Col_A Col_B Col_C Col_D Col_E Col_F)&lt;BR /&gt;("Region" Col_X Col_Y Col_Z);&lt;/P&gt;&lt;P&gt;define metric/order order=data style(column)={vjust=m cellwidth=1in};&lt;BR /&gt;define dimension1 /display&lt;BR /&gt;style(header)=[bordercolor=gray borderleftwidth=0.5]&lt;BR /&gt;style(column)=[bordercolor=gray borderleftwidth=0.5 cellwidth=1in]&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;define Col_A/display format = comma12. style(column)={just=r cellwidth=0.02in};&lt;BR /&gt;define Col_B/ display format = percentn12.1;&lt;BR /&gt;define Col_C/display format = percentn12.1 ;&lt;BR /&gt;define Col_D/format = comma12. ;&lt;BR /&gt;define Col_E/display format = comma12.;&lt;BR /&gt;define Col_F/display format = comma12.;&lt;BR /&gt;define Col_X/display format = comma12.;&lt;BR /&gt;define Col_Y/display format = dollar12.2;&lt;BR /&gt;define Col_Z/display format = dollar12.;&lt;/P&gt;&lt;P&gt;compute dimension1;&lt;BR /&gt;if dimension1='Total' then do;call define(_row_,'style','style=[bordertopcolor=black bordertopwidth=1 background=#D9D9D9]');end;&lt;BR /&gt;if dimension1='Split_X' then do;call define(_row_,'style','style=[borderbottomcolor=gray borderbottomwidth=1]');&lt;BR /&gt;end;&lt;BR /&gt;endcomp;&lt;/P&gt;&lt;P&gt;compute Col_A; call define(_COL_,'style','style=[borderleftcolor=black borderleftwidth=1]');endcomp;&lt;BR /&gt;compute Col_X; call define(_COL_,'style','style=[borderleftcolor=black borderleftwidth=1]');endcomp;&lt;BR /&gt;run;&lt;BR /&gt;%mend pg;&lt;/P&gt;&lt;P&gt;%let report_dir = %sysfunc(pathname(work));&lt;BR /&gt;ods pdf file="&amp;amp;report_dir/PDF_file_draft1.pdf" notoc;&lt;BR /&gt;Title j=c font='Arial' h=18pt "Data Summary";%pg(raw_data1);&lt;BR /&gt;Title j=c font='Arial' h=18pt "Data Detail";%pg(raw_data2);&lt;BR /&gt;ods pdf close;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:24:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Border-after-every-group/m-p/592197#M23342</guid>
      <dc:creator>new_sas_user_4</dc:creator>
      <dc:date>2019-09-27T15:24:09Z</dc:date>
    </item>
    <item>
      <title>Re: Border after every group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Border-after-every-group/m-p/592206#M23343</link>
      <description>&lt;P&gt;You might want to attach an example of the generated PDF and explain exactly what is needed in relation to values of lines and such.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you are using a COMPUTE block that tests for EXACT values then you would need to include all of the possible values in all of your data sets&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;compute dimension1;
if dimension1='Total' then do;call define(_row_,'style','style=[bordertopcolor=black bordertopwidth=1 background=#D9D9D9]');end;
if dimension1='Split_X' then do;call define(_row_,'style','style=[borderbottomcolor=gray borderbottomwidth=1]');
end;
endcomp;&lt;/PRE&gt;
&lt;P&gt;Or perhaps use a COMPUTE AFTER dimension1.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please describe your problem in terms of you variables. You say that you want "border after every region" but there is no variable named Region in you example data. So I have to &lt;STRONG&gt;guess&lt;/STRONG&gt; that you mean dimension1.&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Border-after-every-group/m-p/592206#M23343</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-09-27T15:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Border after every group</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Border-after-every-group/m-p/592214#M23344</link>
      <description>&lt;P&gt;Currently I see the below outputs for pg2 and pg1&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pg2.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32772i01BAD769B8688B11/image-size/large?v=v2&amp;amp;px=999" role="button" title="pg2.PNG" alt="pg2.PNG" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="pg1.PNG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32773i854D65E650258029/image-size/large?v=v2&amp;amp;px=999" role="button" title="pg1.PNG" alt="pg1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I meant after every metric(which has region values)..below is how I WANT page 2 to look.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="I want the border after every group of metric" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/32769iBAB928763A21DAC3/image-size/large?v=v2&amp;amp;px=999" role="button" title="pg2_WANT.PNG" alt="I want the border after every group of metric" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;I want the border after every group of metric&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2019 15:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Border-after-every-group/m-p/592214#M23344</guid>
      <dc:creator>new_sas_user_4</dc:creator>
      <dc:date>2019-09-27T15:46:31Z</dc:date>
    </item>
  </channel>
</rss>

