<?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: Different Background Colour in each printed line? in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175673#M12488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Is it possible to compute a group of variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Apr 2014 14:05:56 GMT</pubDate>
    <dc:creator>alr</dc:creator>
    <dc:date>2014-04-10T14:05:56Z</dc:date>
    <item>
      <title>Different Background Colour in each printed line?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175671#M12486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;I have this simple proc print:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc print data=sashelp.class noobs label;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var&amp;nbsp;&amp;nbsp;&amp;nbsp; name / style={just=left};&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var&amp;nbsp;&amp;nbsp;&amp;nbsp; Sex / style={BACKGROUND=white OUTPUTWIDTH=40};&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var&amp;nbsp;&amp;nbsp;&amp;nbsp; Age / style={BACKGROUND=white OUTPUTWIDTH=40};&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var&amp;nbsp;&amp;nbsp;&amp;nbsp; Height / style={BACKGROUND=red OUTPUTWIDTH=40};&lt;BR /&gt;&amp;nbsp;&amp;nbsp; var&amp;nbsp;&amp;nbsp;&amp;nbsp; Weight / style={BACKGROUND=white OUTPUTWIDTH=40};&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible to change the Background Colour in “age” based on the values in “name” using some pre-generated formats?&lt;/P&gt;&lt;P&gt;For example all the students named Alfred have their own format and all students named Alice have another format? (&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;simply a different format for each line&lt;/STRONG&gt;&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;Is it possible in proc report?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 11:42:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175671#M12486</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2014-04-10T11:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: Different Background Colour in each printed line?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175672#M12487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, you need a compute section and a call style command in proc report.&amp;nbsp; Here are some examples:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/resources/papers/stylesinprocs.pdf" title="http://support.sas.com/resources/papers/stylesinprocs.pdf"&gt;http://support.sas.com/resources/papers/stylesinprocs.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 12:16:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175672#M12487</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-10T12:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Different Background Colour in each printed line?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175673#M12488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Is it possible to compute a group of variables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:05:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175673#M12488</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2014-04-10T14:05:56Z</dc:date>
    </item>
    <item>
      <title>Re: Different Background Colour in each printed line?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175674#M12489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you clarify the request.&amp;nbsp; You can use the group option in the define for columns. And set styles for row/col.&amp;nbsp; It may just be easier if you want something else to have a nonprinted variable to indicate a 'group' and use that to change the style of the element, though perhaps an example of what you require may clarify.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 14:26:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175674#M12489</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-04-10T14:26:45Z</dc:date>
    </item>
    <item>
      <title>Re: Different Background Colour in each printed line?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175675#M12490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; For some information about PROC REPORT and styles, this paper shows some of the style changes (&lt;A href="https://support.sas.com/resources/papers/proceedings13/366-2013.pdf" title="https://support.sas.com/resources/papers/proceedings13/366-2013.pdf"&gt;https://support.sas.com/resources/papers/proceedings13/366-2013.pdf&lt;/A&gt;). For information about how PROC REPORT works, you might want to refer to the PROC REPORT&amp;nbsp; documentation. Changing Age based on name is an example in the above paper shown on page 13.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Apr 2014 19:24:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175675#M12490</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-04-10T19:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Different Background Colour in each printed line?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175676#M12491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a list of KPI’s and each line should be formatted separately.&lt;/P&gt;&lt;P&gt;KPIID – KPI1 – KPI2 – KPI3 – KPI4 – KPI5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then the code is:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;compute kpi1;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if kpiid = 1 then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;call define ('kpi1','style','style=[background=stndr.]');&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;endcomp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;compute kpi2;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;if kpiid = 1 then&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;call define ('kpi2','style','style=[background=stndr.]');&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;endcomp;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;and so on for kpi3, kpi4 and kpi5.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;KPI1 to KPI5 have same background format for each KPIID.&lt;/P&gt;&lt;P&gt;I just thought if it is possible to reduce the code and somehow write one compute for KPI1 to KPI5 and set the format for kpi1 to kpi5.&lt;/P&gt;&lt;P&gt;I have 32 different KPIID with 32 different formats.&lt;/P&gt;&lt;P&gt;I hope my explanation make sense.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 08:38:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175676#M12491</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2014-04-11T08:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Different Background Colour in each printed line?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175677#M12492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Cynthia, I'll look at the paper.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 08:40:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175677#M12492</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2014-04-11T08:40:04Z</dc:date>
    </item>
    <item>
      <title>Re: Different Background Colour in each printed line?</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175678#M12493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both. It works:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;proc report data=mydata;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; col kpiid kpi_4 kpi_3 kpi_2 kpi_1 kpi_0;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; define kpiid&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; / display&amp;nbsp; ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; define kpi_0-kpi_4 / display&amp;nbsp; ;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; compute kpi_0;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if kpiid = 1 then do;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define ('kpi_0','style','style={background=myfmt.}');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define ('kpi_1','style','style={background=myfmt.}');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define ('kpi_2','style','style={background=myfmt.}');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define ('kpi_3','style','style={background=myfmt.}');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; call define ('kpi_4','style','style={background=myfmt.}');&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp; endcomp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;run;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Apr 2014 09:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Different-Background-Colour-in-each-printed-line/m-p/175678#M12493</guid>
      <dc:creator>alr</dc:creator>
      <dc:date>2014-04-11T09:15:40Z</dc:date>
    </item>
  </channel>
</rss>

