Sorry I made a mistake. In my data base "type" is numeric: 1for horizental deals, 2 for vertical and 3 for conglomerate.(so there is no horizental, vertical, conglomerate under type variable only 1 and 2 and3. "ConsiStr" is a character variable: Cash, stock, hybrid, unknown.
I changed the statements to:
proc glm data=a; where type="3"; class ConsiStr year Industry; model Acar1 = year / noint; run; QUIT; proc glm data=a; where put (ConsiStr,$char6.)="cash"; class ConsiStr type year Industry; model Acar1 = ConsiStr / noint; run; QUIT;
and the error is still:
46 proc glm data=a; 147 where type="3"; ERROR: WHERE clause operator requires compatible variables. 148 class ConsiStr year Industry; 149 model Acar1 = year / noint; 150 run;
WARNING: RUN statement ignored due to previous errors. Submit QUIT; to terminate the procedure. 151 QUIT;
NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE GLM used (Total process time): real time 0.00 seconds cpu time 0.01 seconds
152 proc glm data=a; 153 where put (ConsiStr,$char6.)="cash"; 154 class ConsiStr type year Industry; 155 model Acar1 = ConsiStr / noint; 156 run;
NOTE: No observations were selected from data set WORK.A. NOTE: PROCEDURE GLM used (Total process time): real time 0.00 seconds cpu time 0.01 seconds
157 QUIT;
thanks,
Niloo
... View more