我刚开始没有加这么多变量,运行的很好,可是多winsorize了三了变量就这样了,怎么回事呢,大于小于号有什么问题吗,都是英文状态下输入的。
554 proc sql;
555 create table a_winsorize as select port3.stkcd,port3.ar,port3.year1,
556 case
557 when(e<e_p1) then e_p1
558 when(e>e_p99) then e_p99
559 else e
560 end as e,
561 case
562 when(c<c_p1) then c_p1
563 when(c>c_p99) then c_p99
564 else c
565 end as c,
566 case
567 when(tacc<tacc_p1) then tacc_p1
568 when(tacc>tacc_p99) then tacc_p99
569 else tacc
570 end as tacc,
571 case
572 when(le<le_p1) then le_p1
573 when(le>le_p99) then le_p99
574 else le
575 end as le,
576 case
577 when(lc<lc_p1) then lc_p1
578 when(lc>lc_p99) then lc_p99
579 else lc
580 end as lc,
581 case
582 when(ltacc<ltacc_p1) then ltacc_p1
583 when(ltacc>ltacc_p99) then ltacc_p99
584 else ltacc
585 end as ltacc
586 from port3, a_quant;
ERROR: Expression using less than (<) has components that are of different data types.
ERROR: Expression using greater than (>) has components that are of different data types.
ERROR: Result of WHEN clause 3 is not the same data type as the preceding results.
ERROR: Expression using less than (<) has components that are of different data types.
ERROR: Expression using greater than (>) has components that are of different data types.
ERROR: Result of WHEN clause 3 is not the same data type as the preceding results.
ERROR: Expression using less than (<) has components that are of different data types.
ERROR: Expression using greater than (>) has components that are of different data types.
ERROR: Result of WHEN clause 3 is not the same data type as the preceding results.
ERROR: The following columns were not found in the contributing tables: lc_p1, lc_p99, le_p1, le_p99,
ltacc_p1, ltacc_p99.
587 quit;