this is never will work...
how do you can get a data from a SQL when they don`t exists...
If you put tempa as inner join , you will have only what are in common between tables. And with the last clause you just invert all logical , bring nothing...
Try this... maybe need some adjusts..
Code:
unload to missing_acct_numbers1.txt
select tempb.di_id, tempb.acct_number
from tempb
where
not exists (
select * from tempa where
tempb.di_id = tempa.di_id and
and tempa.acct_number LIKE '%'||tempb.acct_number||'%'
);