data work.aprilbills (drop=Total EquipCost); set cert.aprbills; if Days>7 then Discount=(RoomCharge)*.20; else Discount=0; TotalDue=Total-Discount; format DateIn DateOut date9.; format RoomRate RoomCharge Discount TotalDue dollar10.2; run; proc print data=work.aprilbills; run;