Hi
I have 12 character variables named proc1, proc2, proc3, proc4, ..., proc12.
I would like to check for a value in all the 12 variables using proc sql.
I used this code.
proc sql noprint;
create table temp6 as select proc1-proc12
from temp3
where proc1-proc12 eqT 'ABC';
quit;
I got this error.
ERROR: Expression using subtraction (-) requires numeric types.
ERROR: Expression using subtraction (-) requires numeric types.
ERROR: Expression using equals (=) has components that are of different data types.
SAS assumes the hyphen as a minus sign.
I want to take the array route if all else fails.
Thanks in advance,
Sandhya.