<?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 Removing Border around Lines when using Compute before/after &amp; PDF in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-Border-around-Lines-when-using-Compute-before-after-PDF/m-p/58665#M7002</link>
    <description>Using the “Writing a Customized Summary on Each Page” from &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473656.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473656.htm&lt;/A&gt;, how would I remove the box around the compute blocks and lines statements when writing a PDF file?  I’m still using SAS 9.13.&lt;BR /&gt;
&lt;BR /&gt;
Using ODS markup, I know that the Style Element is NOTECONTENT:  &lt;BR /&gt;
		STYLE NoteContent /&lt;BR /&gt;
			;&lt;BR /&gt;
&lt;BR /&gt;
I attempted the following but it didn’t work:&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
	define style styles.nonotes;&lt;BR /&gt;
	parent=styles.default;&lt;BR /&gt;
   	style NoteContent /&lt;BR /&gt;
		frame=void&lt;BR /&gt;
		rules=none&lt;BR /&gt;
			;&lt;BR /&gt;
	end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
As you can probably guess, I’m trying to create more than 10 footnotes and the border makes the report look weird.&lt;BR /&gt;
&lt;BR /&gt;
The code follows my signature.&lt;BR /&gt;
&lt;BR /&gt;
TIA,&lt;BR /&gt;
Kim LeBouton&lt;BR /&gt;
&lt;BR /&gt;
proc format /*library=proclib*/;&lt;BR /&gt;
   value $sctrfmt 'se' = 'Southeast'&lt;BR /&gt;
                  'ne' = 'Northeast'&lt;BR /&gt;
                  'nw' = 'Northwest'&lt;BR /&gt;
                  'sw' = 'Southwest';&lt;BR /&gt;
&lt;BR /&gt;
   value $mgrfmt '1' = 'Smith'   '2' = 'Jones'&lt;BR /&gt;
                 '3' = 'Reveiz'  '4' = 'Brown'&lt;BR /&gt;
                 '5' = 'Taylor'  '6' = 'Adams'&lt;BR /&gt;
                 '7' = 'Alomar'  '8' = 'Andrews'&lt;BR /&gt;
                 '9' = 'Pelfrey';&lt;BR /&gt;
&lt;BR /&gt;
   value $deptfmt 'np1' = 'Paper'&lt;BR /&gt;
                  'np2' = 'Canned'&lt;BR /&gt;
                  'p1'  = 'Meat/Dairy'&lt;BR /&gt;
                  'p2'  = 'Produce';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data grocery;&lt;BR /&gt;
   input Sector $ Manager $ Department $ Sales @@;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
se 1 np1 50    se 1 p1 100   se 1 np2 120   se 1 p2 80&lt;BR /&gt;
se 2 np1 40    se 2 p1 300   se 2 np2 220   se 2 p2 70&lt;BR /&gt;
nw 3 np1 60    nw 3 p1 600   nw 3 np2 420   nw 3 p2 30&lt;BR /&gt;
nw 4 np1 45    nw 4 p1 250   nw 4 np2 230   nw 4 p2 73&lt;BR /&gt;
nw 9 np1 45    nw 9 p1 205   nw 9 np2 420   nw 9 p2 76&lt;BR /&gt;
sw 5 np1 53    sw 5 p1 130   sw 5 np2 120   sw 5 p2 50&lt;BR /&gt;
sw 6 np1 40    sw 6 p1 350   sw 6 np2 225   sw 6 p2 80&lt;BR /&gt;
ne 7 np1 90    ne 7 p1 190   ne 7 np2 420   ne 7 p2 86&lt;BR /&gt;
ne 8 np1 200   ne 8 p1 300   ne 8 np2 420   ne 8 p2 125&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/*libname proclib 'SAS-data-library';*/&lt;BR /&gt;
 &lt;BR /&gt;
options nodate pageno=1 /*linesize=64 pagesize=30&lt;BR /&gt;
        fmtsearch=(proclib)*/;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
ods pdf file='c:\test to remove box';&lt;BR /&gt;
 &lt;BR /&gt;
proc report data=grocery nowd&lt;BR /&gt;
            headline headskip;&lt;BR /&gt;
 &lt;BR /&gt;
     title 'Sales for Individual Stores';&lt;BR /&gt;
 &lt;BR /&gt;
     column sector manager department sales Profit;&lt;BR /&gt;
 &lt;BR /&gt;
     define sector / group noprint;&lt;BR /&gt;
   define manager / group noprint;&lt;BR /&gt;
   define profit / computed format=dollar11.2;&lt;BR /&gt;
   define sales / analysis sum format=dollar11.2;&lt;BR /&gt;
   define department / group format=$deptfmt.;&lt;BR /&gt;
 &lt;BR /&gt;
   compute profit;&lt;BR /&gt;
      if department='np1' or department='np2' &lt;BR /&gt;
         then profit=0.4*sales.sum;&lt;BR /&gt;
      else profit=0.25*sales.sum;&lt;BR /&gt;
   endcomp;&lt;BR /&gt;
 &lt;BR /&gt;
      compute before _page_ / left;&lt;BR /&gt;
      line sector $sctrfmt. ' Sector';&lt;BR /&gt;
      line 'Store managed by ' manager $mgrfmt.;&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
   endcomp;&lt;BR /&gt;
 &lt;BR /&gt;
     break after manager / ol summarize page;&lt;BR /&gt;
 &lt;BR /&gt;
     compute after manager;&lt;BR /&gt;
 &lt;BR /&gt;
        length text $ 35;&lt;BR /&gt;
 &lt;BR /&gt;
        if sales.sum lt 500 then&lt;BR /&gt;
         text='Sales are below the target region.';&lt;BR /&gt;
      else if sales.sum ge 500 and sales.sum lt 1000 then&lt;BR /&gt;
         text='Sales are in the target region.';&lt;BR /&gt;
      else if sales.sum ge 1000 then&lt;BR /&gt;
         text='Sales exceeded goal!';&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line text $35.;&lt;BR /&gt;
   endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;</description>
    <pubDate>Fri, 24 Jul 2009 21:33:12 GMT</pubDate>
    <dc:creator>KimLeBouton</dc:creator>
    <dc:date>2009-07-24T21:33:12Z</dc:date>
    <item>
      <title>Removing Border around Lines when using Compute before/after &amp; PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-Border-around-Lines-when-using-Compute-before-after-PDF/m-p/58665#M7002</link>
      <description>Using the “Writing a Customized Summary on Each Page” from &lt;A href="http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473656.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/61895/HTML/default/a002473656.htm&lt;/A&gt;, how would I remove the box around the compute blocks and lines statements when writing a PDF file?  I’m still using SAS 9.13.&lt;BR /&gt;
&lt;BR /&gt;
Using ODS markup, I know that the Style Element is NOTECONTENT:  &lt;BR /&gt;
		STYLE NoteContent /&lt;BR /&gt;
			;&lt;BR /&gt;
&lt;BR /&gt;
I attempted the following but it didn’t work:&lt;BR /&gt;
&lt;BR /&gt;
proc template;&lt;BR /&gt;
	define style styles.nonotes;&lt;BR /&gt;
	parent=styles.default;&lt;BR /&gt;
   	style NoteContent /&lt;BR /&gt;
		frame=void&lt;BR /&gt;
		rules=none&lt;BR /&gt;
			;&lt;BR /&gt;
	end;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
As you can probably guess, I’m trying to create more than 10 footnotes and the border makes the report look weird.&lt;BR /&gt;
&lt;BR /&gt;
The code follows my signature.&lt;BR /&gt;
&lt;BR /&gt;
TIA,&lt;BR /&gt;
Kim LeBouton&lt;BR /&gt;
&lt;BR /&gt;
proc format /*library=proclib*/;&lt;BR /&gt;
   value $sctrfmt 'se' = 'Southeast'&lt;BR /&gt;
                  'ne' = 'Northeast'&lt;BR /&gt;
                  'nw' = 'Northwest'&lt;BR /&gt;
                  'sw' = 'Southwest';&lt;BR /&gt;
&lt;BR /&gt;
   value $mgrfmt '1' = 'Smith'   '2' = 'Jones'&lt;BR /&gt;
                 '3' = 'Reveiz'  '4' = 'Brown'&lt;BR /&gt;
                 '5' = 'Taylor'  '6' = 'Adams'&lt;BR /&gt;
                 '7' = 'Alomar'  '8' = 'Andrews'&lt;BR /&gt;
                 '9' = 'Pelfrey';&lt;BR /&gt;
&lt;BR /&gt;
   value $deptfmt 'np1' = 'Paper'&lt;BR /&gt;
                  'np2' = 'Canned'&lt;BR /&gt;
                  'p1'  = 'Meat/Dairy'&lt;BR /&gt;
                  'p2'  = 'Produce';&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
data grocery;&lt;BR /&gt;
   input Sector $ Manager $ Department $ Sales @@;&lt;BR /&gt;
   datalines;&lt;BR /&gt;
se 1 np1 50    se 1 p1 100   se 1 np2 120   se 1 p2 80&lt;BR /&gt;
se 2 np1 40    se 2 p1 300   se 2 np2 220   se 2 p2 70&lt;BR /&gt;
nw 3 np1 60    nw 3 p1 600   nw 3 np2 420   nw 3 p2 30&lt;BR /&gt;
nw 4 np1 45    nw 4 p1 250   nw 4 np2 230   nw 4 p2 73&lt;BR /&gt;
nw 9 np1 45    nw 9 p1 205   nw 9 np2 420   nw 9 p2 76&lt;BR /&gt;
sw 5 np1 53    sw 5 p1 130   sw 5 np2 120   sw 5 p2 50&lt;BR /&gt;
sw 6 np1 40    sw 6 p1 350   sw 6 np2 225   sw 6 p2 80&lt;BR /&gt;
ne 7 np1 90    ne 7 p1 190   ne 7 np2 420   ne 7 p2 86&lt;BR /&gt;
ne 8 np1 200   ne 8 p1 300   ne 8 np2 420   ne 8 p2 125&lt;BR /&gt;
;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
/*libname proclib 'SAS-data-library';*/&lt;BR /&gt;
 &lt;BR /&gt;
options nodate pageno=1 /*linesize=64 pagesize=30&lt;BR /&gt;
        fmtsearch=(proclib)*/;&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods html close;&lt;BR /&gt;
ods pdf file='c:\test to remove box';&lt;BR /&gt;
 &lt;BR /&gt;
proc report data=grocery nowd&lt;BR /&gt;
            headline headskip;&lt;BR /&gt;
 &lt;BR /&gt;
     title 'Sales for Individual Stores';&lt;BR /&gt;
 &lt;BR /&gt;
     column sector manager department sales Profit;&lt;BR /&gt;
 &lt;BR /&gt;
     define sector / group noprint;&lt;BR /&gt;
   define manager / group noprint;&lt;BR /&gt;
   define profit / computed format=dollar11.2;&lt;BR /&gt;
   define sales / analysis sum format=dollar11.2;&lt;BR /&gt;
   define department / group format=$deptfmt.;&lt;BR /&gt;
 &lt;BR /&gt;
   compute profit;&lt;BR /&gt;
      if department='np1' or department='np2' &lt;BR /&gt;
         then profit=0.4*sales.sum;&lt;BR /&gt;
      else profit=0.25*sales.sum;&lt;BR /&gt;
   endcomp;&lt;BR /&gt;
 &lt;BR /&gt;
      compute before _page_ / left;&lt;BR /&gt;
      line sector $sctrfmt. ' Sector';&lt;BR /&gt;
      line 'Store managed by ' manager $mgrfmt.;&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
   endcomp;&lt;BR /&gt;
 &lt;BR /&gt;
     break after manager / ol summarize page;&lt;BR /&gt;
 &lt;BR /&gt;
     compute after manager;&lt;BR /&gt;
 &lt;BR /&gt;
        length text $ 35;&lt;BR /&gt;
 &lt;BR /&gt;
        if sales.sum lt 500 then&lt;BR /&gt;
         text='Sales are below the target region.';&lt;BR /&gt;
      else if sales.sum ge 500 and sales.sum lt 1000 then&lt;BR /&gt;
         text='Sales are in the target region.';&lt;BR /&gt;
      else if sales.sum ge 1000 then&lt;BR /&gt;
         text='Sales exceeded goal!';&lt;BR /&gt;
      line ' ';&lt;BR /&gt;
      line text $35.;&lt;BR /&gt;
   endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;</description>
      <pubDate>Fri, 24 Jul 2009 21:33:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-Border-around-Lines-when-using-Compute-before-after-PDF/m-p/58665#M7002</guid>
      <dc:creator>KimLeBouton</dc:creator>
      <dc:date>2009-07-24T21:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Border around Lines when using Compute before/after &amp; PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-Border-around-Lines-when-using-Compute-before-after-PDF/m-p/58666#M7003</link>
      <description>Hi:&lt;BR /&gt;
  You could try this. I'm not entirely sure that it will work in SAS 9.1.3. It worked for me in 9.2. I can't remember when the bordertopcolor, borderbottomcolor,etc got implemented:&lt;BR /&gt;
[pre]&lt;BR /&gt;
compute after manager /&lt;BR /&gt;
        style={bordertopcolor=black borderrightcolor=white&lt;BR /&gt;
               borderleftcolor=white borderbottomcolor=white};&lt;BR /&gt;
[/pre]&lt;BR /&gt;
 &lt;BR /&gt;
A different approach which will get you more than 10 titles or footnotes is an ODS ESCAPECHAR approach:&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
footnote1 'one ~1n extra';&lt;BR /&gt;
footnote2 'two ~1n  extra';&lt;BR /&gt;
footnote3 'three ~1n  extra';&lt;BR /&gt;
footnote4 'four ~1n  extra';&lt;BR /&gt;
footnote5 'five ~1n  extra';&lt;BR /&gt;
footnote6 'six ~1n  extra';&lt;BR /&gt;
footnote7 'seven ~1n  extra';&lt;BR /&gt;
footnote8 'eight ~1n  extra';&lt;BR /&gt;
footnote9 'nine ~1n  extra';&lt;BR /&gt;
footnote10 'ten ~1n  extra';&lt;BR /&gt;
[/pre]&lt;BR /&gt;
                                                                &lt;BR /&gt;
The ESCAPECHAR, in this case, is the tilde (~) and the tilde + 1n (~1n) will give you a line feed character. So essentially, you have 20 footnote lines here (PDF) ... and will also work for RTF and HTML.&lt;BR /&gt;
                            &lt;BR /&gt;
cynthia</description>
      <pubDate>Sat, 25 Jul 2009 21:41:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-Border-around-Lines-when-using-Compute-before-after-PDF/m-p/58666#M7003</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-25T21:41:36Z</dc:date>
    </item>
    <item>
      <title>Re: Removing Border around Lines when using Compute before/after &amp; PDF</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-Border-around-Lines-when-using-Compute-before-after-PDF/m-p/58667#M7004</link>
      <description>SAS 9.13 doesn't support the first suggestion.  It didn't produce any errors in the log, but it didn't work.  After I tried the code, I decided to search SAS 9.13 documentation and didn't find anything.  Another reason why I need to get a copy of SAS 9.2! ;-&amp;gt;&lt;BR /&gt;
&lt;BR /&gt;
The escape character and footnotes will work.  Thanks so much.&lt;BR /&gt;
&lt;BR /&gt;
Kim</description>
      <pubDate>Wed, 29 Jul 2009 22:44:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Removing-Border-around-Lines-when-using-Compute-before-after-PDF/m-p/58667#M7004</guid>
      <dc:creator>KimLeBouton</dc:creator>
      <dc:date>2009-07-29T22:44:20Z</dc:date>
    </item>
  </channel>
</rss>

