data tblCustomer1;
set tblCustomer;
if Salary >= 50000 then Bonus=Salary *0.05;
if Salary <= 50000 then Bonus=Salary *0.25;
Total = Salary+Bonus ;
put Total dollar10.2;
run;
Output
Salary Bonus
23000 2357
How can I convert the Bonus from numeric to currency. I tried
put Total dollar10.2;
but no conversion
set tblCustomer;
if Salary >= 50000 then Bonus=Salary *0.05;
if Salary <= 50000 then Bonus=Salary *0.25;
Total = Salary+Bonus ;
put Total dollar10.2;
run;
Output
Salary Bonus
23000 2357
How can I convert the Bonus from numeric to currency. I tried
put Total dollar10.2;
but no conversion