<?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 Proc Report Call Define in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11946#M3110</link>
    <description>compute ENT_STATE;&lt;BR /&gt;
if upcase(ENT_STATE) not in ('UP','') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={background=#CD5916}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
hello, this works quite well, but actually i want to do this:&lt;BR /&gt;
&lt;BR /&gt;
compute Tool;&lt;BR /&gt;
if upcase(ENT_STATE) not in ('UP','') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={background=#CD5916}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
so coloring one column depending on the value of an other variable, this doesn't work for me... any tips?&lt;BR /&gt;
&lt;BR /&gt;
define Tool / display ;&lt;BR /&gt;
define ExecBy/ display;&lt;BR /&gt;
define Ent_State / display;

Message was edited by: Filipvdr</description>
    <pubDate>Thu, 17 Feb 2011 07:47:39 GMT</pubDate>
    <dc:creator>Filipvdr</dc:creator>
    <dc:date>2011-02-17T07:47:39Z</dc:date>
    <item>
      <title>Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11946#M3110</link>
      <description>compute ENT_STATE;&lt;BR /&gt;
if upcase(ENT_STATE) not in ('UP','') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={background=#CD5916}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
hello, this works quite well, but actually i want to do this:&lt;BR /&gt;
&lt;BR /&gt;
compute Tool;&lt;BR /&gt;
if upcase(ENT_STATE) not in ('UP','') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={background=#CD5916}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
so coloring one column depending on the value of an other variable, this doesn't work for me... any tips?&lt;BR /&gt;
&lt;BR /&gt;
define Tool / display ;&lt;BR /&gt;
define ExecBy/ display;&lt;BR /&gt;
define Ent_State / display;

Message was edited by: Filipvdr</description>
      <pubDate>Thu, 17 Feb 2011 07:47:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11946#M3110</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-02-17T07:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11947#M3111</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P&gt;&lt;BR /&gt;
does the Tool variable is &lt;B&gt; before &lt;/B&gt; ENT_STATE variable in your column statement?&lt;BR /&gt;
&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P&gt;Marius&lt;/P&gt;</description>
      <pubDate>Thu, 17 Feb 2011 10:23:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11947#M3111</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-17T10:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11948#M3112</link>
      <description>Yes&lt;BR /&gt;
&lt;BR /&gt;
column OperSeq OpersAway Facility Lot_ID Operation PreferredTool OperParValue WaferstobeprocessedNr oCycleTime ExecBy OperOwner dpHold Holdnote ProcessEngineer Holdcode BatchEngineer Route Datim DaysOper Ent_State oper24 oper48;  &lt;BR /&gt;
/* Start Defining Columns */&lt;BR /&gt;
	define OperSeq / display ;&lt;BR /&gt;
	define OpersAway / display ;&lt;BR /&gt;
	define Facility / group;&lt;BR /&gt;
	define Lot_id /group;  &lt;BR /&gt;
	define Operation / display width=15 FLOW;&lt;BR /&gt;
	define PreferredTool / display ;&lt;BR /&gt;
	define OperParValue / display ;&lt;BR /&gt;
	define WaferstobeprocessedNr / display ;&lt;BR /&gt;
	define oCycleTime/ display;&lt;BR /&gt;
	define ExecBy/ display noprint;&lt;BR /&gt;
	define OperOwner / display ;&lt;BR /&gt;
	define DpHold / display  ;&lt;BR /&gt;
	define HoldNote / noprint ;&lt;BR /&gt;
	define ProcessEngineer / noprint ;&lt;BR /&gt;
	define HoldCode / noprint ;&lt;BR /&gt;
	define BatchEngineer / noprint ;&lt;BR /&gt;
	define Route / noprint ;&lt;BR /&gt;
	define Datim / display noprint ;&lt;BR /&gt;
	define DaysOper / display noprint ;  &lt;BR /&gt;
	define Ent_State / display; &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Tool = PreferredTool

Message was edited by: Filipvdr</description>
      <pubDate>Thu, 17 Feb 2011 12:54:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11948#M3112</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-02-17T12:54:54Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11949#M3113</link>
      <description>&lt;P&gt;hello,&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;P&gt;I don't see your Tool variable on the column statement, but anyway I will give an example based on alises which may help you in solving your issue. the key is to have the values of the variable in the if clause availabe &lt;B&gt; before &lt;/B&gt; the vlues of the variable you are trying to "polish":&lt;/P&gt;&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.class nowd ;&lt;BR /&gt;
column name=name_n age sex name  ;&lt;BR /&gt;
&lt;BR /&gt;
define name_n / noprint;&lt;BR /&gt;
define sex / width=5 center;&lt;BR /&gt;
&lt;BR /&gt;
compute sex;&lt;BR /&gt;
if upcase(name_n) not in ('Alfred','') then&lt;BR /&gt;
call define (_col_,'STYLE','style={background=#CD5916}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
run;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Marius</description>
      <pubDate>Thu, 17 Feb 2011 13:35:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11949#M3113</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2011-02-17T13:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11950#M3114</link>
      <description>Ok, thanks, that worked.&lt;BR /&gt;
&lt;BR /&gt;
Next question:&lt;BR /&gt;
&lt;BR /&gt;
If the ent_state is not up, then i want PreferredTool (Ent_state) to be displayed&lt;BR /&gt;
&lt;BR /&gt;
compute PreferredTool;&lt;BR /&gt;
if upcase(ENT_STATE) not in ('UP','') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={background=#CD5916}');&lt;BR /&gt;
if upcase(ENT_STATE) not in ('UP','') then&lt;BR /&gt;
	PreferredTool = PreferredTool || "(" || ENT_STATE  || ")" || ;&lt;BR /&gt;
endcomp;</description>
      <pubDate>Thu, 17 Feb 2011 14:05:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11950#M3114</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-02-17T14:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Call Define</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11951#M3115</link>
      <description>solved it by making this field in the dataset which is used

Message was edited by: Filipvdr</description>
      <pubDate>Tue, 22 Feb 2011 07:37:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Call-Define/m-p/11951#M3115</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-02-22T07:37:52Z</dc:date>
    </item>
  </channel>
</rss>

