<?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: Line statement in compute bloc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/467042#M119196</link>
    <description>&lt;P&gt;Hi Cynthia!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! &amp;nbsp;I appreciate your time very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your codes worked exactly the way I needed for it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ethen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jun 2018 21:54:28 GMT</pubDate>
    <dc:creator>Ethen</dc:creator>
    <dc:date>2018-06-01T21:54:28Z</dc:date>
    <item>
      <title>Line statement in compute bloc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/466943#M119176</link>
      <description>&lt;P&gt;Hi everyone!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code and it works fine, except that I like to be able to format the value in the Csal, Cuni and Csalt variables, such as making the font color or back ground color of the values in the Csal, Cuni and Csalt variables different than the texts preceding them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate any help you could provide!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;compute after / style=Header{just=l fontweight=bold fontsize=14pt};&lt;BR /&gt;region = 'All Regions';&lt;BR /&gt;Csal = left(put(salesmn,dollar10.));&lt;BR /&gt;Cuni = left(put(unit_pricemn,dollar10.));&lt;BR /&gt;Csalt = left(put(sales_taxmn,dollar10.));&lt;BR /&gt;line "^{style[textdecoration=underline]Averages for These Regions}";&lt;BR /&gt;line "Sales: " Csal $varying50.;&lt;BR /&gt;line "Unit Price: " Cuni $varying50.;&lt;BR /&gt;line "Sales Tax: " Csalt $varying50.;&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ethen,&lt;/P&gt;&lt;DIV class="page"&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 01 Jun 2018 17:23:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/466943#M119176</guid>
      <dc:creator>Ethen</dc:creator>
      <dc:date>2018-06-01T17:23:06Z</dc:date>
    </item>
    <item>
      <title>Re: Line statement in compute bloc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/466957#M119179</link>
      <description>&lt;P&gt;You call define with foreground= or background=&lt;/P&gt;
&lt;P&gt;Check this out:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format;
value $stat 'Normal'='green'
'Underweight'='orange'
'Overweight'='red';
run;
proc report data=sashelp.heart;
column bp_status weight_status ageatstart;
define bp_status /group ;
define weight_status /group;
define ageatstart/mean format=8.2;
compute weight_status;
call define(_col_,'style','style={foreground=$stat.}');
endcomp;
run; &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Jun 2018 17:57:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/466957#M119179</guid>
      <dc:creator>SuryaKiran</dc:creator>
      <dc:date>2018-06-01T17:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: Line statement in compute bloc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/466995#M119183</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you want to change the font color of text in a LINE statement, you have limited choices. Either you change the color of the WHOLE string or you use ODS ESCAPECHAR, as shown below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_escapechar_line.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20947iEF6D5C3B74F942A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_escapechar_line.png" alt="use_escapechar_line.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; If you want to use the normal RBREAK statement and a CALL DEFINE, then you can change foreground color and background color, to produce this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_rbreak.png" style="width: 577px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20948i3D55D8450E93FA4C/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_rbreak.png" alt="use_rbreak.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;using this code:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="use_rbreak_code.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/20949iA7431E45024904FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="use_rbreak_code.png" alt="use_rbreak_code.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 18:57:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/466995#M119183</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2018-06-01T18:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: Line statement in compute bloc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/467042#M119196</link>
      <description>&lt;P&gt;Hi Cynthia!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! &amp;nbsp;I appreciate your time very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your codes worked exactly the way I needed for it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, again!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ethen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 21:54:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/467042#M119196</guid>
      <dc:creator>Ethen</dc:creator>
      <dc:date>2018-06-01T21:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Line statement in compute bloc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/467043#M119197</link>
      <description>&lt;P&gt;HI Suryakiran!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you! &amp;nbsp;I appreciate your time very much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your codes worked, but they applied the styles to the values in the column and not the line statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Mark,&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jun 2018 21:57:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Line-statement-in-compute-bloc/m-p/467043#M119197</guid>
      <dc:creator>Ethen</dc:creator>
      <dc:date>2018-06-01T21:57:32Z</dc:date>
    </item>
  </channel>
</rss>

