<?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: Need help to create proc report using multiple values in one column in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-to-create-proc-report-using-multiple-values-in-one/m-p/860986#M26201</link>
    <description>&lt;P&gt;Pls find solution here -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860907#M340075" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860907#M340075&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 27 Feb 2023 03:21:40 GMT</pubDate>
    <dc:creator>nitink26</dc:creator>
    <dc:date>2023-02-27T03:21:40Z</dc:date>
    <item>
      <title>Need help to create proc report using multiple values in one column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-to-create-proc-report-using-multiple-values-in-one/m-p/860915#M26199</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Code -&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;%macro aa;&lt;BR /&gt;%do I = 1 %to 4;&lt;BR /&gt;PROC SQL NOPRINT ;&lt;BR /&gt;SELECT ID INTO : ITEM FROM TEST&lt;BR /&gt;WHERE N = &amp;amp;I.;&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;PROC SQL NOPRINT ;&lt;BR /&gt;SELECT VALUES INTO : other_items FROM TEST&lt;BR /&gt;WHERE N = &amp;amp;I.;&lt;BR /&gt;QUIT;&lt;/P&gt;
&lt;P&gt;%PUT &amp;amp;ITEM. &amp;amp;other_items.; &lt;BR /&gt;proc report data=TEST;&lt;BR /&gt;column ID A1-A7 VALUES;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;compute A1;&lt;BR /&gt;IF ID = &amp;amp;item. and A1 IN &amp;amp;other_items.&lt;BR /&gt;THEN call define('A1', "style", "style=[background=lightgreen]"); &lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;compute A2;&lt;BR /&gt;IF ID = &amp;amp;item. and A2 IN &amp;amp;other_items.&lt;BR /&gt;then call define('A2', "style", "style=[background=lightgreen]");&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;compute A3;&lt;BR /&gt;IF ID = &amp;amp;item. and A3 IN &amp;amp;other_items.&lt;BR /&gt;then call define('A3', "style", "style=[background=lightgreen]");&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;compute A4;&lt;BR /&gt;IF ID = &amp;amp;item. and A4 IN &amp;amp;other_items.&lt;BR /&gt;then call define('A4', "style", "style=[background=lightgreen]");&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;compute A5;&lt;BR /&gt;IF ID = &amp;amp;item. and A5 IN &amp;amp;other_items.&lt;BR /&gt;then call define('A5', "style", "style=[background=lightgreen]");&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;compute A6;&lt;BR /&gt;IF ID = &amp;amp;item. and A6 IN &amp;amp;other_items.&lt;BR /&gt;then call define('A6', "style", "style=[background=lightgreen]");&lt;BR /&gt;endcomp;&lt;/P&gt;
&lt;P&gt;compute A7;&lt;BR /&gt;IF ID = &amp;amp;item. and A7 IN &amp;amp;other_items.&lt;BR /&gt;then call define('A7', "style", "style=[background=lightgreen]");&lt;BR /&gt;endcomp;&lt;BR /&gt;%END;&lt;BR /&gt;%mend;&lt;BR /&gt;%AA;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;output from above code-&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nitink26_0-1677405347982.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80849i0B27CBE94AD0CF8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nitink26_0-1677405347982.png" alt="nitink26_0-1677405347982.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output I need -&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="nitink26_1-1677405526932.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/80850i8214538594EF5416/image-size/medium?v=v2&amp;amp;px=400" role="button" title="nitink26_1-1677405526932.png" alt="nitink26_1-1677405526932.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need output on the basis of id and VALUES column and highlight the cells A1-A7 according to values in column VALUES.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here ID is a unique identifier and one ID has only one unique value in VALUES column.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dataset test is attached for your reference.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 10:04:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-to-create-proc-report-using-multiple-values-in-one/m-p/860915#M26199</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-26T10:04:11Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create proc report using multiple values in one column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-to-create-proc-report-using-multiple-values-in-one/m-p/860923#M26200</link>
      <description>&lt;P&gt;Please don't ask the same question twice.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Discussion with answers here:&amp;nbsp;&lt;A href="https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860804#M340040" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860804#M340040&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Feb 2023 12:26:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-to-create-proc-report-using-multiple-values-in-one/m-p/860923#M26200</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-02-26T12:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Need help to create proc report using multiple values in one column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-to-create-proc-report-using-multiple-values-in-one/m-p/860986#M26201</link>
      <description>&lt;P&gt;Pls find solution here -&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860907#M340075" target="_blank"&gt;https://communities.sas.com/t5/SAS-Programming/I-need-to-colour-columns-values-while-sending-to-excel-ods/m-p/860907#M340075&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Feb 2023 03:21:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Need-help-to-create-proc-report-using-multiple-values-in-one/m-p/860986#M26201</guid>
      <dc:creator>nitink26</dc:creator>
      <dc:date>2023-02-27T03:21:40Z</dc:date>
    </item>
  </channel>
</rss>

