求大神们解答一下,下边两个程序语句有区别么?
if(SBP_FINAL> =140 and SBP_FINAL<160) or (DBP_FINAL>=90 and DBP_FINAL<100) then hplevel=1;else
和
if(140<=SBP_FINA<160) or (90<=DBP_FINAL<100) then hplevel=1;else
我在执行以下程序的时候,有部分对象SBP_FINAL在140到160之间,DBP_FINAL在100到110之间的,hplevel被赋值为1了。这是为什么呢?
data XZ.a2;
set XZ.a2;
if SBP_FINAL< 140 and dBP_FINAL < 90 then hplevel=0;else
if(140<=SBP_FINA<160) or (90<=DBP_FINAL<100) then hplevel=1;else
if(160<=SBP_FINAL<180) or (100<=DBP_FINAL<110) then hplevel=2;else
if(SBP_FINAL>=180)or (DBP_FINAL>=110) then hplevel=3;
run;
用一下语句 if sbp_final=141 and dbp_final=101 THEN HPLEVEL=2;
也无法修改成功,请大神指点一下,谢谢!