%let Other_base300 = ;
proc sql noprint;
select Distinct ent_name into: Other_base300 separated by ' '
from base_table_shift
where upcase(facility)=upcase("&facility") and upcase(ToolArea) not in ('WMCE','OVEN','LITHO','ISE');
quit;
%put Other Tools: &Other_base300;
proc report data = spc_final nowd split='#';
columns Month User UserArea ExPmProcedures
('- ISE -' &ISE_base300)
('- LITHO -' &Litho_base300)
( '- OVEN -' &Oven_base300)
%IF "&Wmce_base300" NE "" %THEN ('- WMCE -' &Wmce_base300);
%IF "&Other_base300" NE "" %THEN ('- OTHER-' &Other_base300);
;
label &label_base;
define month /order=data group 'M#o#n#t#h' ;
define User/ order=data Group 'U#s#e#r' ;
define UserArea / /*format=$User2UArea.*/ Order=data 'U#s#e#r#-#A#r#e#a';
define ExPmProcedures/ analysis sum 'E#x#-#P#m#P#r#o#c';
break after Month / summarize ul;
where upcase(facility)=upcase("&facility");
run;
NOTE: Line generated by the macro variable "OTHER_BASE300".
28390 300MM_DICER MAGNUM RAIDER_2 RECUP SCRUBBER
---
22
--------
202
ERROR 22-322: Syntax error, expecting one of the following: a name, a quoted string, (, _ALL_,
_CHARACTER_, _CHAR_, _NUMERIC_.
ERROR 202-322: The option or parameter is not recognized and will be ignored.
It has to domething with the tool starting with a number 300MDICER. Any help?
... View more