<?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: proc report: How to color the row I created w the compute &amp; line statement? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-How-to-color-the-row-I-created-w-the-compute-line/m-p/38018#M9696</link>
    <description>Hi:&lt;BR /&gt;
  Technically, the area created by a LINE statement is controlled by different methods than the _ROW_ method. So you have 2 ways to control the output from a LINE statement:&lt;BR /&gt;
1) use STYLE(LINES) in a PROC REPORT statement to control the style of all the LINE statement output; or&lt;BR /&gt;
2) add the style override to your COMPUTE statement which will ONLY impact the LINE output that is contained within that COMPUTE block:&lt;BR /&gt;
[pre]&lt;BR /&gt;
compute after mycol1 / &lt;BR /&gt;
        style={font_weight=bold backgroud=blue just=l};&lt;BR /&gt;
   line 'my group heading';&lt;BR /&gt;
endcomp; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
            &lt;BR /&gt;
Note also that I removed the @1 in favor of using JUST=L. Generally speaking the use of @ pointer controls rarely results in the output you want. By using @1, I assume you wanted to left-justify your text string.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Mon, 22 Nov 2010 15:46:43 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2010-11-22T15:46:43Z</dc:date>
    <item>
      <title>proc report: How to color the row I created w the compute &amp; line statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-How-to-color-the-row-I-created-w-the-compute-line/m-p/38017#M9695</link>
      <description>Hi!&lt;BR /&gt;
&lt;BR /&gt;
in a proc report I create a new row with compute and the line statement. Now I's like to set the background color of this row. However, the call define shows no effect. Here's my code:&lt;BR /&gt;
&lt;BR /&gt;
proc report mydata;&lt;BR /&gt;
 column mycol1 mycol2;&lt;BR /&gt;
 define mycol1 / group '';&lt;BR /&gt;
 define mycol2 / analysis sum '';&lt;BR /&gt;
&lt;BR /&gt;
 compute after mycol1;&lt;BR /&gt;
  @1 line 'my group heading';&lt;BR /&gt;
  call define(_row_,'style','style={font_weight=bold backgroud=blue}');&lt;BR /&gt;
 endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Eva</description>
      <pubDate>Mon, 22 Nov 2010 14:35:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-How-to-color-the-row-I-created-w-the-compute-line/m-p/38017#M9695</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2010-11-22T14:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: proc report: How to color the row I created w the compute &amp; line statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-How-to-color-the-row-I-created-w-the-compute-line/m-p/38018#M9696</link>
      <description>Hi:&lt;BR /&gt;
  Technically, the area created by a LINE statement is controlled by different methods than the _ROW_ method. So you have 2 ways to control the output from a LINE statement:&lt;BR /&gt;
1) use STYLE(LINES) in a PROC REPORT statement to control the style of all the LINE statement output; or&lt;BR /&gt;
2) add the style override to your COMPUTE statement which will ONLY impact the LINE output that is contained within that COMPUTE block:&lt;BR /&gt;
[pre]&lt;BR /&gt;
compute after mycol1 / &lt;BR /&gt;
        style={font_weight=bold backgroud=blue just=l};&lt;BR /&gt;
   line 'my group heading';&lt;BR /&gt;
endcomp; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
            &lt;BR /&gt;
Note also that I removed the @1 in favor of using JUST=L. Generally speaking the use of @ pointer controls rarely results in the output you want. By using @1, I assume you wanted to left-justify your text string.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 22 Nov 2010 15:46:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-How-to-color-the-row-I-created-w-the-compute-line/m-p/38018#M9696</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2010-11-22T15:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: proc report: How to color the row I created w the compute &amp; line statement?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/proc-report-How-to-color-the-row-I-created-w-the-compute-line/m-p/38019#M9697</link>
      <description>Dear Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
thanx a lot fpr your great answer - as usual a great inspiration for accumulating knowledge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;
&lt;BR /&gt;
Best regards&lt;BR /&gt;
Eva</description>
      <pubDate>Tue, 23 Nov 2010 10:01:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/proc-report-How-to-color-the-row-I-created-w-the-compute-line/m-p/38019#M9697</guid>
      <dc:creator>Eva</dc:creator>
      <dc:date>2010-11-23T10:01:04Z</dc:date>
    </item>
  </channel>
</rss>

