<?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 Format and output to Template in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Format-and-output-to-Template/m-p/673521#M202632</link>
    <description>&lt;P&gt;I found how to get the formatting to work while suppressing the additional column.&amp;nbsp; Now, I just need a way to get this output assigned to a panel in PROC TEMPLATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
value colorflag 1='BILG'
2='gold'
3='orange'
4='VIYPK';
run;


proc report data=States nowd out=inset  ;
columns  state_name score dummy;
define state_name/ 'State Name' display center color=white ;
define score/noprint display;
define dummy/computed noprint;
compute dummy/character length=100;
length svar $100;
if score in( 1, 2, 3, 4) then do;
svar = catt('style={background=', put (score, colorflag.),'}');
dummy=svar;
call define ('state_name', 'style', svar);
end;
endcomp;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 30 Jul 2020 18:33:46 GMT</pubDate>
    <dc:creator>RandoDando</dc:creator>
    <dc:date>2020-07-30T18:33:46Z</dc:date>
    <item>
      <title>Proc Report Format and output to Template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Format-and-output-to-Template/m-p/673469#M202608</link>
      <description>&lt;P&gt;I am using PROC REPORT to simply print a few state names the a conditional format on the cell color based on the score value.&amp;nbsp; I do not want to print the score value, just the state name. Additionally, I would like to add this output to a panel in PROC TEMPLATE, but see no options for the name to reference it.&amp;nbsp; Is that even possible with this procedure?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc report data=States nowd  ;
columns  state_name score;
define state_name/display center ;
define score   /  noprint;

compute state_name;

if score = 1 then do;
     call define(_row_, "style", "style=[font_weight=bold  background=BILG]");
     end;

if score = 2 then do;
     call define(_row_, "style", "style=[font_weight=bold  background=gold]");
     end;

if score = 3 then do;
     call define(_row_, "style", "style=[font_weight=bold  background=orange]");
     end;
if score = 4 then do;
     call define(_row_, "style", "style=[font_weight=bold  background=VIYPK]");
     end;
endcomp;

run;quit;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 30 Jul 2020 15:47:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Format-and-output-to-Template/m-p/673469#M202608</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-30T15:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Format and output to Template</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Format-and-output-to-Template/m-p/673521#M202632</link>
      <description>&lt;P&gt;I found how to get the formatting to work while suppressing the additional column.&amp;nbsp; Now, I just need a way to get this output assigned to a panel in PROC TEMPLATE.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format ;
value colorflag 1='BILG'
2='gold'
3='orange'
4='VIYPK';
run;


proc report data=States nowd out=inset  ;
columns  state_name score dummy;
define state_name/ 'State Name' display center color=white ;
define score/noprint display;
define dummy/computed noprint;
compute dummy/character length=100;
length svar $100;
if score in( 1, 2, 3, 4) then do;
svar = catt('style={background=', put (score, colorflag.),'}');
dummy=svar;
call define ('state_name', 'style', svar);
end;
endcomp;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 30 Jul 2020 18:33:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-Report-Format-and-output-to-Template/m-p/673521#M202632</guid>
      <dc:creator>RandoDando</dc:creator>
      <dc:date>2020-07-30T18:33:46Z</dc:date>
    </item>
  </channel>
</rss>

