The problem wasn't the AS/400 (IBM i) it was the 5250 interface. That's throwing the baby out with the bath water.