UDS-D mode can usually be restarted within a session after a normal or abnormal termination by using the DAL command &START DISTRIBUTION. This causes the existing UDS-D tables to be reused.
Secondary subtransactions that are still open from the previous UDS-D mode are handled as follows:
Secondary subtransactions that are not in the PTC state are rolled back.
Secondary subtransactions in the PTC state are terminated in the same way as the associated primary subtransaction. If the state of the primary subtransaction cannot be determined, the secondary subtransaction is handled as defined by the value of the DBH load parameter PP PTCSYNCH for the current session.
If PP PTCSYNCH=(...,ABORT) or =(...,COMMIT), the secondary subtransaction is terminated with ABORT or COMMIT.
If PP PTCSYNCH=(...,WAIT), the secondary subtransaction remains in the PTC state.