Executing Terminal-Oriented Transactions that Use DB2