1. I'd probably create an ODBC connection, get it working in the IDE
and copy the correct syntax from the dialog. I should be able to find
and post an example tomorrow from work.
2. I'd suggest encapsulating the following in a set of functions on
your own transaction object (eg create a new class inherited from
transaction)
// begin transaction
sqlca.autocommit=false
// commit
commit using sqlca;
sqlca.autocommit=true
// rollback
rollback using sqlca;
sqlca.autocommit=true