and f.account_num = s.origin_agent
Sorry Bonker I missed that , so you're right, you can use either f.account_num or s.origin_agent inside the decode.

Regards,

RBARAER