<?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: How do I hide PROC REPORT Column Borders in ODS PDF? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555093#M22697</link>
    <description>&lt;P&gt;I would also use a journal based style and then add the elements as need, for the spanning headers you can use inline formatting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add this code as second step after your original Proc REPORT and have a look. It will change the style used for this second output&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="^";
ods pdf style=journal;
proc report data=baseball nofs; 
  column ("^{style [borderbottomcolor=black borderrightcolor=black]Player Info}" Rank Name Team league) 
	 ("^{style [borderbottomcolor=black borderrightcolor=black]1986 Stats}" nAtBat nHits nBA) 
	 ("^{style [borderbottomcolor=black]Career Stats}" CrAtBat CrHits CrBA);
     *First column in each grouping has a left border that is grey, with subsequent columns having white left borders;
  define Rank / display id style(column)={ } style(header)={ };
  define Name / display id style(column)={  } style(header)={  };
  define Team / display id style(column)={  } style(header)={  };
  define League / display id style(column)={ BORDERrightCOLOR=black  } style(header)={ BORDERrightCOLOR=black  };

  define nAtBat / display style(column)={} style(header)={}; 
  define nHits / display style(column)={   } style(header)={   };  
  define nBA / display style(column)={ borderrightcolor=black  } style(header)={ borderrightcolor=black };  

  define CrAtBat / display style(column)={  } style(header)={ }; 
  define CrHits / display style(column)={   } style(header)={   };  
  define CrBA / display style(column)={  } style(header)={  };

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Tue, 30 Apr 2019 15:43:20 GMT</pubDate>
    <dc:creator>BrunoMueller</dc:creator>
    <dc:date>2019-04-30T15:43:20Z</dc:date>
    <item>
      <title>How do I hide PROC REPORT Column Borders in ODS PDF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/554907#M22682</link>
      <description>&lt;P&gt;Hi, I've searched for an answer to this, but have come up blank.&amp;nbsp; I'm using SAS 9.4 Level 1M5 in a Window server environment.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Problem:&lt;/STRONG&gt; I'm trying to create production-quality tables using PROC REPORT in an ODS PDF output where I can group columns together having borders between certain columns, but not other columns.&amp;nbsp; I'm using the column and header styles to do adjust the appearances.&amp;nbsp; The only partial solution I've found is setting the vertical border colors to WHITE, but this creates gaps in the horizontal lines; this is close but looks bad for what I'm doing.&amp;nbsp; I've tried setting border widths to zero, but that doesn't seem to help.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Question:&lt;/STRONG&gt; Is there a way to make borders in PROC REPORT clear or transparent or non-existent?&amp;nbsp; Or to change the order in which they are drawn?&amp;nbsp; I was envisioning an option that sets the border/line transparency to 100%, but &lt;A href="https://documentation.sas.com/?docsetId=proc&amp;amp;docsetTarget=p14xegao6xt0xnn1865r422tpytw.htm&amp;amp;docsetVersion=9.4&amp;amp;locale=en#p1o4o0hcvfmfv3n1bvgb25yjdsk7" target="_self"&gt;I don't see that option&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;An example of what I'm trying to do is generated by the code below -- you'll see that there are gaps in the horizontal lines between the columns that I set to WHITE.&amp;nbsp; In the example, I set the left-side border to grey (&lt;CODE class=" language-sas"&gt;borderleftcolor=grey&lt;/CODE&gt;), and columns where I'd like to have no border to white (&lt;CODE class=" language-sas"&gt;borderleftcolor=white&lt;/CODE&gt;).&amp;nbsp; The sample code also sets the left border widths to zero for the ones I want to be blank (&lt;CODE class=" language-sas"&gt;borderleftwidth=0pt&lt;/CODE&gt;), but this does not appear to have an effect (I read that this works best in ODS RTF).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas would be greatly appreciated!&amp;nbsp; Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;*Data setup;&lt;BR /&gt;data baseball;
  set sashelp.baseball;
  nBA=nHits/nAtBat;
  CrBA=CrHits/CrAtBat;
  format nBA CrBA 8.3;
  label
	nBA="Batting Average in 1986"
	CrBA="Career Batting Average";
  ;
run;

proc sort data=baseball;
  by descending nBA;
run;
&lt;BR /&gt;*Top 20 MLB batting averages;
data baseball (where=(rank&amp;lt;=20));
  set baseball;
  Rank=_n_;
run;
&lt;BR /&gt;*Output file setup;
%let path=C:\;
ods pdf file="&amp;amp;path.baseball_ba.pdf";
&lt;BR /&gt;options orientation=landscape;&lt;BR /&gt;
title "1986 MLB Batting Average Leaders";
footnote;&lt;BR /&gt;
proc report data=baseball nofs; 
  column ("Player Info" Rank Name Team league) 
	 ("1986 Stats" nAtBat nHits nBA) 
	 ("Career Stats" CrAtBat CrHits CrBA);
   &lt;BR /&gt;  *First column in each grouping has a left border that is grey, with subsequent columns having white left borders;
  define Rank / display id style(column)={borderleftcolor=grey} style(header)={borderleftcolor=grey};
  define Name / display id style(column)={borderleftwidth=0pt borderleftcolor=white} style(header)={borderleftwidth=0pt borderleftcolor=white};
  define Team / display id style(column)={borderleftwidth=0pt borderleftcolor=white} style(header)={borderleftwidth=0pt borderleftcolor=white};
  define League / display id style(column)={borderleftwidth=0pt borderleftcolor=white} style(header)={borderleftwidth=0pt borderleftcolor=white};

  define nAtBat / display style(column)={borderleftcolor=grey} style(header)={borderleftcolor=grey}; 
  define nHits / display style(column)={borderleftwidth=0pt borderleftcolor=white} style(header)={borderleftwidth=0pt borderleftcolor=white};  
  define nBA / display style(column)={borderleftwidth=0pt borderleftcolor=white} style(header)={borderleftwidth=0pt borderleftcolor=white};  

  define CrAtBat / display style(column)={borderleftcolor=grey} style(header)={borderleftcolor=grey}; 
  define CrHits / display style(column)={borderleftwidth=0pt borderleftcolor=white} style(header)={borderleftwidth=0pt borderleftcolor=white};  
  define CrBA / display style(column)={borderleftwidth=0pt borderleftcolor=white borderrightcolor=grey} style(header)={borderleftwidth=0pt borderleftcolor=white borderrightcolor=grey};

run;

ods pdf close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Apr 2019 03:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/554907#M22682</guid>
      <dc:creator>EricS</dc:creator>
      <dc:date>2019-04-30T03:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide PROC REPORT Column Borders in ODS PDF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/554921#M22683</link>
      <description>&lt;P&gt;Interesting question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could try the technique "OVERLAYING GRAPHIC OUTPUT ON TABULAR DATA", described on page nine of this document:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.google.com/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=4&amp;amp;ved=2ahUKEwjrjvO0gvfhAhX1unEKHcXKAiEQFjADegQIAxAC&amp;amp;url=https%3A%2F%2Fsupport.sas.com%2Fresources%2Fpapers%2Fproceedings%2Fproceedings%2Fsugi31%2F092-31.pdf&amp;amp;usg=AOvVaw3xy3l16eqnU5FKJlWhOTjm" data-ctbtn="0" data-cthref="/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=4&amp;amp;ved=2ahUKEwjrjvO0gvfhAhX1unEKHcXKAiEQFjADegQIAxAC&amp;amp;url=https%3A%2F%2Fsupport.sas.com%2Fresources%2Fpapers%2Fproceedings%2Fproceedings%2Fsugi31%2F092-31.pdf&amp;amp;usg=AOvVaw3xy3l16eqnU5FKJlWhOTjm" target="_blank"&gt;&lt;CITE class="iUh30"&gt;https://support.sas.com/resources/papers/proceedings/proceedings/sugi31/092-31.pdf&lt;/CITE&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 05:00:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/554921#M22683</guid>
      <dc:creator>Norman21</dc:creator>
      <dc:date>2019-04-30T05:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide PROC REPORT Column Borders in ODS PDF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/554927#M22684</link>
      <description>&lt;P&gt;Thanks, Norman21. That's an interesting strategy, which should work for smaller/single-page tables. I'll have to think about how this would work for larger tables spanning across pages.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 05:41:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/554927#M22684</guid>
      <dc:creator>EricS</dc:creator>
      <dc:date>2019-04-30T05:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide PROC REPORT Column Borders in ODS PDF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555075#M22696</link>
      <description>&lt;P&gt;First thing I would try would be to use a style such a JOURNAL which typically does not put vertical borders and then overwrite where I wanted a border. Such as:&lt;/P&gt;
&lt;PRE&gt;ods pdf file="&amp;amp;path.baseball_ba.pdf" style=journal;
options orientation=landscape;
title "1986 MLB Batting Average Leaders";
footnote;
proc report data=baseball nofs; 
  column ("Player Info" Rank Name Team league) 
	 ("1986 Stats" nAtBat nHits nBA) 
	 ("Career Stats" CrAtBat CrHits CrBA);
     *First column in each grouping has a left border that is grey, with subsequent columns having white left borders;
  define Rank / display id style(column)={borderleftcolor=grey } style(header)={borderleftcolor=grey };
  define Name / display id style(column)={  } style(header)={borderleftwidth=0pt  };
  define Team / display id style(column)={  } style(header)={borderleftwidth=0pt  };
  define League / display id style(column)={   } style(header)={   };

  define nAtBat / display style(column)={borderleftcolor=grey} style(header)={borderleftcolor=grey}; 
  define nHits / display style(column)={   } style(header)={   };  
  define nBA / display style(column)={   } style(header)={  };  

  define CrAtBat / display style(column)={borderleftcolor=grey   } style(header)={borderleftcolor=grey  }; 
  define CrHits / display style(column)={   } style(header)={   };  
  define CrBA / display style(column)={  borderrightcolor=grey} style(header)={  borderrightcolor=grey};

run;

ods pdf close;&lt;/PRE&gt;
&lt;P&gt;may get you started. Need to work on the header yet though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Typically anywhere you have border between columns you would set both the right and left width to 0 (unit not needed in this case)&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 15:00:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555075#M22696</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-04-30T15:00:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide PROC REPORT Column Borders in ODS PDF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555093#M22697</link>
      <description>&lt;P&gt;I would also use a journal based style and then add the elements as need, for the spanning headers you can use inline formatting.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Add this code as second step after your original Proc REPORT and have a look. It will change the style used for this second output&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods escapechar="^";
ods pdf style=journal;
proc report data=baseball nofs; 
  column ("^{style [borderbottomcolor=black borderrightcolor=black]Player Info}" Rank Name Team league) 
	 ("^{style [borderbottomcolor=black borderrightcolor=black]1986 Stats}" nAtBat nHits nBA) 
	 ("^{style [borderbottomcolor=black]Career Stats}" CrAtBat CrHits CrBA);
     *First column in each grouping has a left border that is grey, with subsequent columns having white left borders;
  define Rank / display id style(column)={ } style(header)={ };
  define Name / display id style(column)={  } style(header)={  };
  define Team / display id style(column)={  } style(header)={  };
  define League / display id style(column)={ BORDERrightCOLOR=black  } style(header)={ BORDERrightCOLOR=black  };

  define nAtBat / display style(column)={} style(header)={}; 
  define nHits / display style(column)={   } style(header)={   };  
  define nBA / display style(column)={ borderrightcolor=black  } style(header)={ borderrightcolor=black };  

  define CrAtBat / display style(column)={  } style(header)={ }; 
  define CrHits / display style(column)={   } style(header)={   };  
  define CrBA / display style(column)={  } style(header)={  };

run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 30 Apr 2019 15:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555093#M22697</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2019-04-30T15:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide PROC REPORT Column Borders in ODS PDF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555196#M22701</link>
      <description>&lt;P&gt;Thank you, ballardw -- this is great.&amp;nbsp; Much appreciated.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 19:54:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555196#M22701</guid>
      <dc:creator>EricS</dc:creator>
      <dc:date>2019-04-30T19:54:44Z</dc:date>
    </item>
    <item>
      <title>Re: How do I hide PROC REPORT Column Borders in ODS PDF?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555197#M22702</link>
      <description>&lt;P&gt;Thanks, Bruno_SAS.&amp;nbsp; That's a great idea to use inline formatting.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 19:57:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/How-do-I-hide-PROC-REPORT-Column-Borders-in-ODS-PDF/m-p/555197#M22702</guid>
      <dc:creator>EricS</dc:creator>
      <dc:date>2019-04-30T19:57:24Z</dc:date>
    </item>
  </channel>
</rss>

