I have the following code
create table waiver as
select tbraccd_pidm as pidm_key, tbraccd_amount format=8.2 informat=8.2, tbraccd_detail_code,
tbbdetc_desc, tbraccd_term_code
from ora.tbraccd, ora.tbbdetc
where tbraccd_term_code in ("20&year1.30",/*"20&year1.03",*/"20&year1.40",/*"20&year1.04",*/"20&year2.10",/*"20&year2.01",*/
"20&year2.20",/*"20&year2.02"*/) and
tbraccd_detail_code = tbbdetc_detail_code and
tbraccd_detail_code in ('EFTV','WAPG','WCHS','WCNY','WDEN','WDEP','WDE4','WDE5','WDIN','WDIS','WEMN','WEMP','WFOS',
'WHMS','WHOM','WHON','WICE','WICM','WNGC','WNGD','WNNG','WNRN','WPRN','WPRT','WRMT',
'WSNN','WSNR','WSPN','WSPS','WSWP','WUDI','WUDO')and
tbraccd_pidm not in (220322,232937) /* VA board & not student*/
order by tbraccd_pidm, tbraccd_detail_code, tbraccd_term_code;
Which I follow up with the next batch of code:
data waiver2(keep=pidm_key tw_amount tbraccd_detail_code tbraccd_term_code)/debug;
retain tw_amount;
format tw_amount 8.2;
set waiver;
by pidm_key tbraccd_detail_code tbraccd_term_code;
if first.tbraccd_term_code then tw_amount=0;
tw_amount = tbraccd_amount + tw_amount;
if last.tbraccd_term_code and tw_amount>= 0.01;
run;
Somehow some of the tbraccd_amount data looks like 1456.100000000000000000003 which makes an issue when I attempt to add the data together & compare it to the output data that I pulled out before changes to my program. How can I fix the programs to only get data that is 1456.10? Thanks.
... View more