Excellent example!
However, your DBMS check should be ...
IF Emptran.SQLCode = 0 THEN
COMMIT USING Emp_tran ;
END IF
FWIW: Never trust SQLNRows. :-)
Also ... John would need to set:
Emp_tran.AutoCommit = TRUE
Excellent example!
However, your DBMS check should be ...
IF Emptran.SQLCode = 0 THEN
COMMIT USING Emp_tran ;
END IF
FWIW: Never trust SQLNRows. :-)
Also ... John would need to set:
Emp_tran.AutoCommit = TRUE