In natural/db2 is there a statement that i could say the transaction starts here and based on some condition it rollback or commits transactions.
There are 2 transactions say A, B.
based on one of the flag in ‘B’ i have to either commit or rolback the transactions in A and B together.
I used BACKOUT TRANSACTION but it just rollbacks only the ones done in ‘B’ not in A.
Requirement is either commit both A and B or Rollback both A and B.
Please let me know.
Thanks in advance.