<?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: difference 9.1  and 9.2 in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18443#M3647</link>
    <description>this is my full code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods html file=_webout (title="Prio Lot Report") stylesheet=(URL="http://imecwww.imec.be/~osp/fab300/test/ImecStyle.css");&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
/* title */&lt;BR /&gt;
/*ods text="Prio Lot Report";*/&lt;BR /&gt;
options nobyline;&lt;BR /&gt;
proc report data=prio_table nowd style(report) = [rules=groups cellspacing=0pt];&lt;BR /&gt;
/* Each variable you want to display or to highlight has to be in the column section */&lt;BR /&gt;
column Lot_ID Ent_State OperSeq OpersAway Facility Operation ToolAndState OperParValue nrWafers oCycleTime &lt;BR /&gt;
       ExecBy OperOwner dpHold Holdnote ProcessEngineer Holdcode BatchEngineer Route Datim DaysOper oper24 oper48 Program Priority PriorityReason TimeCritical;  &lt;BR /&gt;
/* Start Defining Columns */&lt;BR /&gt;
	define Lot_id / display noprint; &lt;BR /&gt;
	define Ent_State / display noprint ; &lt;BR /&gt;
	define OperSeq / display 'Seq';&lt;BR /&gt;
	define OpersAway / display 'Away' ;&lt;BR /&gt;
	define Facility / display noprint;&lt;BR /&gt;
	define Operation / display;&lt;BR /&gt;
	define ToolAndState / display 'Tool';&lt;BR /&gt;
	define OperParValue / display ;&lt;BR /&gt;
	define nrWafers / display 'Wafers';&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 oper24 / display noprint ;&lt;BR /&gt;
	define oper48 / display noprint ;  &lt;BR /&gt;
	define priority / noprint;&lt;BR /&gt;
	define program / noprint;&lt;BR /&gt;
	define TimeCritical / noprint;&lt;BR /&gt;
	define PriorityReason / noprint;&lt;BR /&gt;
/* Byvariable */&lt;BR /&gt;
by lot_id;&lt;BR /&gt;
/* Text before each table */&lt;BR /&gt;
	compute before _page_ / style={just=l};&lt;BR /&gt;
	text1 = 'Lot_Id: ' || '^{style[url="http://wiksas.imec.be:8080/SASStoredProcess/do?_program=/Samples/SP_ShortTermScheduleFast&amp;amp;lotnumber='|| strip(Lot_Id) || '"]'  || strip(Lot_Id) || '}(' || strip(Priority)  || ") Facility:" || strip(Facility)  || "" ;&lt;BR /&gt;
	text2 = "Priority Reason:" || strip(PriorityReason) ;&lt;BR /&gt;
	text3 = "Holdcode: " || strip(Holdcode) || " Holdnote: " || strip(Holdnote)  || "" ;&lt;BR /&gt;
	text4 = "Route: " || strip(route) || " ProcessEngineer: " || strip(ProcessEngineer) || " BatchEngineer: " || strip(BatchEngineer) || "" ;&lt;BR /&gt;
	text5=  "Days At Operation: " || strip(put(DaysOper,6.2)) || " Arrival Date: "|| strip(put(Datim,datetime21.)) || "" ;&lt;BR /&gt;
	text6=   "Program:" || strip(Program) || ""  ;&lt;BR /&gt;
	text7= "Operations Last 24hrs: " || strip(put(oper24,6.2)) || " Last 48hrs: " || strip(put(oper48,6.2)) || "" ;&lt;BR /&gt;
	line text1 $;&lt;BR /&gt;
	line text2 $;&lt;BR /&gt;
	line text3 $;&lt;BR /&gt;
	line text4 $;&lt;BR /&gt;
	line text5 $;&lt;BR /&gt;
	line text6 $;&lt;BR /&gt;
	line text7 $;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
/* Defining rules for variables */&lt;BR /&gt;
/*&lt;BR /&gt;
compute ToolAndState;&lt;BR /&gt;
if upcase(ENT_STATE) eq ('RESERVED') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={color=#143F90}');&lt;BR /&gt;
if upcase(ENT_STATE) IN ('EQFAIL','IDLE_ERROR') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={color=#ED1941}');&lt;BR /&gt;
if upcase(ENT_STATE) in ('SPC_TEST','SET_UP') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={color=#0089CE}');&lt;BR /&gt;
if upcase(ENT_STATE) eq 'IN_REPAIR' then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={color=#00A84F}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
*/&lt;BR /&gt;
&lt;BR /&gt;
compute dpHold ;&lt;BR /&gt;
if dpHold eq "" then&lt;BR /&gt;
dpHold =  ExecBy;&lt;BR /&gt;
/*&lt;BR /&gt;
if upcase(dpHold) eq 'DEVINP' then&lt;BR /&gt;
  	call define (_row_,"STYLE","style={color=#CD5916}");&lt;BR /&gt;
&lt;BR /&gt;
else if upcase(dpHold) IN ("CUST","PROINP","EXPINP") then &lt;BR /&gt;
   call define (_row_,"STYLE","style={color=#ED1941}");&lt;BR /&gt;
*/&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
/*&lt;BR /&gt;
compute Operation ;&lt;BR /&gt;
if substr(Operation,1,3) in ('701','702','703') then&lt;BR /&gt;
  	call define (_row_,'STYLE','style={color=#ED1941}');&lt;BR /&gt;
if substr(Operation,1,3) in ('701','702','703') then&lt;BR /&gt;
  	call define (_row_,'STYLE','style={color=#ED1941}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
*/&lt;BR /&gt;
run;   &lt;BR /&gt;
ods html close;</description>
    <pubDate>Wed, 02 Mar 2011 07:04:03 GMT</pubDate>
    <dc:creator>Filipvdr</dc:creator>
    <dc:date>2011-03-02T07:04:03Z</dc:date>
    <item>
      <title>difference 9.1  and 9.2</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18439#M3643</link>
      <description>hello, this compute block works on 9.2 but generates errors on 9.1&lt;BR /&gt;
&lt;BR /&gt;
compute dpHold ;&lt;BR /&gt;
if dpHold eq '' then&lt;BR /&gt;
dpHold =  ExecBy;&lt;BR /&gt;
if upcase(dpHold) IN ('DEVINP','ENGINP') then&lt;BR /&gt;
  	call define (_row_,'STYLE','style={color=#CD5916}');&lt;BR /&gt;
else if upcase(dpHold) IN ('CUST','PROINP','EXPINP') then &lt;BR /&gt;
   call define (_row_,'STYLE','style={color=#ED1941}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
ERROR:&lt;BR /&gt;
&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
NOTE: The above message was for the following by-group:&lt;BR /&gt;
      LOT_ID=AL100418&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper order.&lt;BR /&gt;
NOTE: The above message was for the following by-group:&lt;BR /&gt;
      LOT_ID=AL100436&lt;BR /&gt;
ERROR 180-322: Statement is not valid or it is used out of proper</description>
      <pubDate>Mon, 28 Feb 2011 12:58:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18439#M3643</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-02-28T12:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: difference 9.1  and 9.2</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18440#M3644</link>
      <description>Hi:&lt;BR /&gt;
  Actually, the error is coming for a BY group, so it's possible that the error is not in the COMPUTE block. If you are trying to use a BY variable in a COMPUTE block, then it MUST be in your COLUMN statement. I can't think of anything else. You might try changing the color to CXCD5916 (with CX instead of #) -- but I think HTML color names also worked in SAS 9.1.&lt;BR /&gt;
&lt;BR /&gt;
  I no longer have SAS 9.1 to test on. You might want to open a track with Tech Support as they could look at your data and ALL your code and test on SAS 9.1.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Mon, 28 Feb 2011 14:57:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18440#M3644</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-02-28T14:57:51Z</dc:date>
    </item>
    <item>
      <title>Re: difference 9.1  and 9.2</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18441#M3645</link>
      <description>i doubt this&lt;BR /&gt;
&lt;BR /&gt;
this runs without errors, when i uncomment i get these errors..&lt;BR /&gt;
my by variable is an other variable&lt;BR /&gt;
&lt;BR /&gt;
compute dpHold ;&lt;BR /&gt;
if dpHold eq "" then&lt;BR /&gt;
dpHold =  ExecBy;&lt;BR /&gt;
/*&lt;BR /&gt;
if upcase(dpHold) eq 'DEVINP' then&lt;BR /&gt;
  	call define (_row_,"STYLE","style={color=#CD5916}");&lt;BR /&gt;
&lt;BR /&gt;
else if upcase(dpHold) IN ("CUST","PROINP","EXPINP") then &lt;BR /&gt;
   call define (_row_,"STYLE","style={color=#ED1941}");&lt;BR /&gt;
*/&lt;BR /&gt;
endcomp;</description>
      <pubDate>Tue, 01 Mar 2011 06:49:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18441#M3645</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-03-01T06:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: difference 9.1  and 9.2</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18442#M3646</link>
      <description>Hi:&lt;BR /&gt;
  I thought it as an unlilkely reason, but worth mentioning, since you didn't show all your code and since the error message explicitly mentioned the BY group. &lt;BR /&gt;
&lt;BR /&gt;
  Still the same recommendation, though --if the code works on 9.2, but not on 9.1, then you need to open a track with Tech Support.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 01 Mar 2011 15:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18442#M3646</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-03-01T15:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: difference 9.1  and 9.2</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18443#M3647</link>
      <description>this is my full code:&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
ods html file=_webout (title="Prio Lot Report") stylesheet=(URL="http://imecwww.imec.be/~osp/fab300/test/ImecStyle.css");&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods escapechar='^';&lt;BR /&gt;
/* title */&lt;BR /&gt;
/*ods text="Prio Lot Report";*/&lt;BR /&gt;
options nobyline;&lt;BR /&gt;
proc report data=prio_table nowd style(report) = [rules=groups cellspacing=0pt];&lt;BR /&gt;
/* Each variable you want to display or to highlight has to be in the column section */&lt;BR /&gt;
column Lot_ID Ent_State OperSeq OpersAway Facility Operation ToolAndState OperParValue nrWafers oCycleTime &lt;BR /&gt;
       ExecBy OperOwner dpHold Holdnote ProcessEngineer Holdcode BatchEngineer Route Datim DaysOper oper24 oper48 Program Priority PriorityReason TimeCritical;  &lt;BR /&gt;
/* Start Defining Columns */&lt;BR /&gt;
	define Lot_id / display noprint; &lt;BR /&gt;
	define Ent_State / display noprint ; &lt;BR /&gt;
	define OperSeq / display 'Seq';&lt;BR /&gt;
	define OpersAway / display 'Away' ;&lt;BR /&gt;
	define Facility / display noprint;&lt;BR /&gt;
	define Operation / display;&lt;BR /&gt;
	define ToolAndState / display 'Tool';&lt;BR /&gt;
	define OperParValue / display ;&lt;BR /&gt;
	define nrWafers / display 'Wafers';&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 oper24 / display noprint ;&lt;BR /&gt;
	define oper48 / display noprint ;  &lt;BR /&gt;
	define priority / noprint;&lt;BR /&gt;
	define program / noprint;&lt;BR /&gt;
	define TimeCritical / noprint;&lt;BR /&gt;
	define PriorityReason / noprint;&lt;BR /&gt;
/* Byvariable */&lt;BR /&gt;
by lot_id;&lt;BR /&gt;
/* Text before each table */&lt;BR /&gt;
	compute before _page_ / style={just=l};&lt;BR /&gt;
	text1 = 'Lot_Id: ' || '^{style[url="http://wiksas.imec.be:8080/SASStoredProcess/do?_program=/Samples/SP_ShortTermScheduleFast&amp;amp;lotnumber='|| strip(Lot_Id) || '"]'  || strip(Lot_Id) || '}(' || strip(Priority)  || ") Facility:" || strip(Facility)  || "" ;&lt;BR /&gt;
	text2 = "Priority Reason:" || strip(PriorityReason) ;&lt;BR /&gt;
	text3 = "Holdcode: " || strip(Holdcode) || " Holdnote: " || strip(Holdnote)  || "" ;&lt;BR /&gt;
	text4 = "Route: " || strip(route) || " ProcessEngineer: " || strip(ProcessEngineer) || " BatchEngineer: " || strip(BatchEngineer) || "" ;&lt;BR /&gt;
	text5=  "Days At Operation: " || strip(put(DaysOper,6.2)) || " Arrival Date: "|| strip(put(Datim,datetime21.)) || "" ;&lt;BR /&gt;
	text6=   "Program:" || strip(Program) || ""  ;&lt;BR /&gt;
	text7= "Operations Last 24hrs: " || strip(put(oper24,6.2)) || " Last 48hrs: " || strip(put(oper48,6.2)) || "" ;&lt;BR /&gt;
	line text1 $;&lt;BR /&gt;
	line text2 $;&lt;BR /&gt;
	line text3 $;&lt;BR /&gt;
	line text4 $;&lt;BR /&gt;
	line text5 $;&lt;BR /&gt;
	line text6 $;&lt;BR /&gt;
	line text7 $;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
/* Defining rules for variables */&lt;BR /&gt;
/*&lt;BR /&gt;
compute ToolAndState;&lt;BR /&gt;
if upcase(ENT_STATE) eq ('RESERVED') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={color=#143F90}');&lt;BR /&gt;
if upcase(ENT_STATE) IN ('EQFAIL','IDLE_ERROR') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={color=#ED1941}');&lt;BR /&gt;
if upcase(ENT_STATE) in ('SPC_TEST','SET_UP') then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={color=#0089CE}');&lt;BR /&gt;
if upcase(ENT_STATE) eq 'IN_REPAIR' then&lt;BR /&gt;
  	call define (_col_,'STYLE','style={color=#00A84F}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
*/&lt;BR /&gt;
&lt;BR /&gt;
compute dpHold ;&lt;BR /&gt;
if dpHold eq "" then&lt;BR /&gt;
dpHold =  ExecBy;&lt;BR /&gt;
/*&lt;BR /&gt;
if upcase(dpHold) eq 'DEVINP' then&lt;BR /&gt;
  	call define (_row_,"STYLE","style={color=#CD5916}");&lt;BR /&gt;
&lt;BR /&gt;
else if upcase(dpHold) IN ("CUST","PROINP","EXPINP") then &lt;BR /&gt;
   call define (_row_,"STYLE","style={color=#ED1941}");&lt;BR /&gt;
*/&lt;BR /&gt;
endcomp;&lt;BR /&gt;
&lt;BR /&gt;
/*&lt;BR /&gt;
compute Operation ;&lt;BR /&gt;
if substr(Operation,1,3) in ('701','702','703') then&lt;BR /&gt;
  	call define (_row_,'STYLE','style={color=#ED1941}');&lt;BR /&gt;
if substr(Operation,1,3) in ('701','702','703') then&lt;BR /&gt;
  	call define (_row_,'STYLE','style={color=#ED1941}');&lt;BR /&gt;
endcomp;&lt;BR /&gt;
*/&lt;BR /&gt;
run;   &lt;BR /&gt;
ods html close;</description>
      <pubDate>Wed, 02 Mar 2011 07:04:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18443#M3647</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-03-02T07:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: difference 9.1  and 9.2</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18444#M3648</link>
      <description>it seems that when i'm changing the style attribute from color to background, it works. But my user wants only text colored, any help?&lt;BR /&gt;
&lt;BR /&gt;
EDIT: foreground color works :-)

Message was edited by: Filipvdr</description>
      <pubDate>Wed, 02 Mar 2011 09:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18444#M3648</guid>
      <dc:creator>Filipvdr</dc:creator>
      <dc:date>2011-03-02T09:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: difference 9.1  and 9.2</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18445#M3649</link>
      <description>Oh, sigh, I should have thought of that! On 9.1, COLOR was not implemented yet, but FOREGROUND was. You can figure out which attributes are the 9.1 attributes, by checking here -- &lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002972093.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/odsug/61723/HTML/default/a002972093.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
generally the "alias" was the attribute name used in 9.1 -- for example:&lt;BR /&gt;
 9.2 / 9.1&lt;BR /&gt;
COLOR  / FOREGROUND&lt;BR /&gt;
FONTSIZE  /  FONT_SIZE&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Wed, 02 Mar 2011 13:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/difference-9-1-and-9-2/m-p/18445#M3649</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2011-03-02T13:31:41Z</dc:date>
    </item>
  </channel>
</rss>

