Can someone explain to me why i have to put commit using sqlca at the end of this stored procedure execution
=======================================================
int mout
DECLARE webrequest PROCEDURE FOR web_request
@code = :cd1,
@code2 = :cd2,
@code3 = :cd3,
@msg = :mesg using sqlca;
EXECUTE webrequest;
FETCH webrequest into :mout;
CLOSE webrequest;
commit using sqlca;
=======================================================
int mout
DECLARE webrequest PROCEDURE FOR web_request
@code = :cd1,
@code2 = :cd2,
@code3 = :cd3,
@msg = :mesg using sqlca;
EXECUTE webrequest;
FETCH webrequest into :mout;
CLOSE webrequest;
commit using sqlca;