21 data mysas.gprsprict_cal_mer;
22 set mysas.gprsprice_cal mysas.gprsprice;
23 if shen<0.04 then shen_a=shen*10;
24 run;

 与

27 data mysas.gprsprict_cal_mer;
28 set mysas.gprsprice_cal mysas.gprsprice;
29 if shen<0.04;
30 shen_a=shen*10;
31 run;

的结果有区别,对if来讲,不符合条件的数据会直接忽略,而if then下不符合条件的数据也会保留。

 

 

 

相关文章:

  • 2022-12-23
  • 2021-12-02
  • 2021-06-23
  • 2021-04-14
  • 2021-04-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-06
  • 2021-07-25
相关资源
相似解决方案