<?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: Formating of line statements in proc report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/411556#M19817</link>
    <description>&lt;P&gt;Hi, without getting into making data and using your macro and all your lines, the simplest way to impact the lines is either in the PROC REPORT statement or down on the COMPUTE statement, as shown in my example below. Remember that every LINE statement is creating a separate cell, so your STYLE applies to every cell. I liked the look of ODS EXCEL output better than TAGSETS.EXCELXP output.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="style_lines_report.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16527i8A1332D1771AB3BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="style_lines_report.png" alt="style_lines_report.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2017 15:52:00 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2017-11-08T15:52:00Z</dc:date>
    <item>
      <title>Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/411466#M19815</link>
      <description>&lt;P&gt;I use ods tagset and proc report to make an Excel file with below table. After the table I add some lines with the line statement. However it seems the formatting on my 'lines' is different from the rest of the table. I have tried different versions of 'style(line)' to try and make up for this, but I cannot find anything that works. I would like to change the cell height and the border colour. Please advice.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="proc_report_with_lines_below.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16524i0FBAFD30E1646312/image-size/large?v=v2&amp;amp;px=999" role="button" title="proc_report_with_lines_below.jpg" alt="proc_report_with_lines_below.jpg" /&gt;&lt;/span&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 color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;_all_&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; noresults ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tagsets.ExcelXP &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=seaside &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;file&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;OUTDIR.\TBL_31_&amp;amp;co_date..xls"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; options(sheet_name=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"TBL_31_&amp;amp;co_date."&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; width_points = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'12'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; width_fudge = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'.0625'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; absolute_column_width = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'200,200,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100,100'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt; row_heights=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'30,30'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;);&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;proc&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;report&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;missing&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;data&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=uniquedata_soc_ord &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(header)=[background=white] &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;split&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'*'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;column&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Number of adverse drug reactions by preferred term from post-marketing sources - &amp;amp;product_alias. ®"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; INTL_ORD_CODE soc )) (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; pt))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Spontaneous, including competent authorities *(worldwide) and literature'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Serious'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; per_ser_s1 cum_ser_s1) (&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Non-serious'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; per_nonser_s1 cum_nonser_s1))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Total *Spontaneous'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;''&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tot))&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Non-interventional post-*marketing studies and *reports from other *solicited sources'&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;(&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Serious'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; per_ser_s2 cum_ser_s2)));&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; INTL_ORD_CODE / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;order&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=formatted &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;noprint&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ; &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; soc / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'SOC'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(header)=[just=l];&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; pt / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;group&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'PT'&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;(header)=[just=l];&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; per_ser_s1 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'PSUR *period'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; cum_ser_s1 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Cumulative'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;　&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; per_nonser_s1 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'PSUR *period'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; cum_nonser_s1 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Cumulative'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tot / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Cumulative *all'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; per_ser_s2 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'PSUR *period'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;define&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; cum_ser_s2 / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;analysis&lt;/FONT&gt; &lt;FONT color="#800080" face="Courier New" size="3"&gt;'Cumulative'&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;break&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;after&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; soc / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;summarize&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=[font_weight=bold font_style=roman];&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;compute&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;after&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; soc;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;soc = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;pt = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Total"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;endcomp&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;rbreak&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;after&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; / &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;summarize&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;style&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=[font_weight=bold font_style=roman];&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;compute&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;after&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;soc = &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Total"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; add_lines();&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%if&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;COUNTRY_COUNT ne &lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%then&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Report based on"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"%sysfunc(trim(&amp;amp;psur_path.))\"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;BASE_DATA. extracted on &amp;amp;cr_date."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Table created on %sysfunc(putn(%sysfunc(date()),date9.)) %sysfunc(putn(%sysfunc(time()),hhmm.))"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Table generated for the country: &amp;amp;COUNTRIES."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"MedDRA version: &amp;amp;MDVER."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Note: Empty SOC and PT denotes as No Data Found"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%else&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%do&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Report based on"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"%sysfunc(trim(&amp;amp;psur_path.))\"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;BASE_DATA. extracted on &amp;amp;cr_date."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Table created on %sysfunc(putn(%sysfunc(date()),date9.)) %sysfunc(putn(%sysfunc(time()),hhmm.))"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"MedDRA version: &amp;amp;MDVER."&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;""&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;line &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"Note: Empty SOC and PT denotes as No Data Found"&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%end&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%&lt;STRONG&gt;&lt;I&gt;add_lines&lt;/I&gt;&lt;/STRONG&gt;();&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;endcomp&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; tagsets.ExcelXP &lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;close&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;listing&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; ;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;ods&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;results&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 10:31:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/411466#M19815</guid>
      <dc:creator>TTNY</dc:creator>
      <dc:date>2017-11-08T10:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/411556#M19817</link>
      <description>&lt;P&gt;Hi, without getting into making data and using your macro and all your lines, the simplest way to impact the lines is either in the PROC REPORT statement or down on the COMPUTE statement, as shown in my example below. Remember that every LINE statement is creating a separate cell, so your STYLE applies to every cell. I liked the look of ODS EXCEL output better than TAGSETS.EXCELXP output.&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="style_lines_report.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/16527i8A1332D1771AB3BF/image-size/large?v=v2&amp;amp;px=999" role="button" title="style_lines_report.png" alt="style_lines_report.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2017 15:52:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/411556#M19817</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-11-08T15:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/411832#M19830</link>
      <description>&lt;P&gt;The HEIGHT statement does not seem to have any impact on cell height and nothing in your code seem to relate to border colour. I need to use TAGSETS.EXCELXP&amp;nbsp;because other parts of my code is depending on it. So this did not help, sorry to say. But thanks for trying.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Nov 2017 08:12:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/411832#M19830</guid>
      <dc:creator>TTNY</dc:creator>
      <dc:date>2017-11-09T08:12:43Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/412140#M19835</link>
      <description>Hi: I was not directly solving your issue, I was showing you where to put the style attributes if you waned to play around with borders. The border style attributes are well documented so if putting them in the right place doesn’t work, you can still try changing the style template.&lt;BR /&gt;&lt;BR /&gt;Cynthia&lt;BR /&gt;</description>
      <pubDate>Thu, 09 Nov 2017 21:21:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/412140#M19835</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2017-11-09T21:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968489#M26878</link>
      <description>Can you apply different styles on the same line statement?</description>
      <pubDate>Mon, 09 Jun 2025 20:47:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968489#M26878</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2025-06-09T20:47:30Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968495#M26879</link>
      <description>&lt;PRE&gt;ods excel file='c:\temp\temp.xlsx';
proc report data=sashelp.class nowd;
column _all_;
compute after ;
line "(*ESC*){style [color=red]xxxxxxx} (*ESC*){style [color=blue fontweight=bold]yyyyyy}  zzzzzz";
endcomp;
run;
ods excel close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1749518588025.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107722iD2EC727AE5AB9317/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1749518588025.png" alt="Ksharp_0-1749518588025.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 01:23:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968495#M26879</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-06-10T01:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968496#M26880</link>
      <description>&lt;P&gt;That code also works with&amp;nbsp;&lt;FONT face="Courier New" size="3" color="#0000ff"&gt;ods&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;tagsets.ExcelXP&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 01:43:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968496#M26880</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-06-10T01:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968497#M26881</link>
      <description>Dear Tom,&lt;BR /&gt;"ods tagsets.excelxp" is obsoleted totally. &lt;BR /&gt;We don't use it anymore, the "ods excel" has replaced it.</description>
      <pubDate>Tue, 10 Jun 2025 01:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968497#M26881</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-06-10T01:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968498#M26882</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/18408"&gt;@Ksharp&lt;/a&gt;&amp;nbsp;- For those on old maintenance releases like SAS 9.4M1/M2 the EXCELXP tagset is still a better option as ODS EXCEL wasn't mature back then...&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 03:01:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968498#M26882</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-06-10T03:01:15Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968676#M26883</link>
      <description>&lt;P&gt;What I need is a method to apply different background colors to different words on the same line while maintaining the same color text. Is this possible? It seems the background color only applies to the line as a whole rather than each individual word. The final destination is either pdf or rtf.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 18:29:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968676#M26883</guid>
      <dc:creator>_Hopper</dc:creator>
      <dc:date>2025-06-10T18:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968678#M26884</link>
      <description>&lt;P&gt;In ODS, the Line statements in a Compute block are seen as one long string. The same is true if there are multiple Line statements in a Compute block. Some style attributes, such as Background, apply to the Line statement cell as a whole and not to individual parts.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jun 2025 18:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968678#M26884</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-06-10T18:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968726#M26885</link>
      <description>&lt;P&gt;You want this ?&lt;/P&gt;
&lt;PRE&gt;ods rtf file='c:\temp\temp.rtf';
proc report data=sashelp.class nowd;
column _all_;
compute after/style(lines)={color=black} ;
line "(*ESC*){style [background=red]xxxxxxx} (*ESC*){style [background=blue]yyyyyy}  zzzzzz";
endcomp;
run;
ods rtf close;&lt;/PRE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Ksharp_0-1749605882472.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/107744i5ACDFD8388158B76/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Ksharp_0-1749605882472.png" alt="Ksharp_0-1749605882472.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 11 Jun 2025 01:38:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968726#M26885</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-06-11T01:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968736#M26886</link>
      <description>&lt;P&gt;Unfortunately, neither of the Excel destinations (Excel or Tagsets.ExcelXP) honor the background color in a LINE statement. It can only be applied on the Compute statement, so it applies to the whole cell.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ods listing close;
ods excel file='c:\temp\temp.xlsx';
ods tagsets.excelxp file='c:\temp\test.xml';
proc report data=sashelp.class nowd;
column _all_;
compute after/style(lines)={color=black backgroundcolor=yellow} ;
line "(*ESC*){style [background=red]xxxxxxx} (*ESC*){style [background=blue]yyyyyy}  zzzzzz";
endcomp;
run;
ods _all_ close;
ods listing;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 11 Jun 2025 12:01:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968736#M26886</guid>
      <dc:creator>Kathryn_SAS</dc:creator>
      <dc:date>2025-06-11T12:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: Formating of line statements in proc report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968800#M26887</link>
      <description>Yeah . It did not honer EXCEL destination.&lt;BR /&gt;But _Hopper want a PDF or RTF file .</description>
      <pubDate>Thu, 12 Jun 2025 01:59:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Formating-of-line-statements-in-proc-report/m-p/968800#M26887</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2025-06-12T01:59:48Z</dc:date>
    </item>
  </channel>
</rss>

