data reg; set oriontst.REGION; if country =('CA' , 'AU') then do; discount=0.10; discount_type='required'; region='north_america'; end; else if country ='OTHERS' then do; discount=0.05; discount_type='optional'; region NE 'north_america'; end; run; My errors: 71 data reg; 72 set oriontst.supplier; 73 74 if country =('CA' , 'AU') then _ 388 200 75 do; __ 180 ERROR 388-185: Expecting an arithmetic operator. ERROR 200-322: The symbol is not recognized and will be ignored. ERROR 180-322: Statement is not valid or it is used out of proper order. 76 discount=0.10; 77 discount_type='required'; 78 region='north_america'; 79 end; ___ 161 80 else if country ='OTHERS' then ____ 160 ERROR 161-185: No matching DO/SELECT statement. ERROR 160-185: No matching IF-THEN clause. 81 do; 82 discount=0.05; 83 discount_type='optional'; 84 region NE 'north_america'; ______ 180 ERROR 180-322: Statement is not valid or it is used out of proper order. 85 end; 86 run;
... View more