MSMQCOMMITTRANS
Commits a unit of work from an MSMQ transaction.
Syntax
CALL MSMQCOMMITTRANS(transObj, rc);
Required Arguments
- transObj
-
Numeric, input
Specifies the transaction
object that is obtained from a previous MSMQBEGINTRANS function call.
- rc
-
Numeric, output
Provides the return
code from the CALL routine. If an error occurs, then the return code
is nonzero. A return code of -1 reflects a SAS internal error. Otherwise,
it represents an MSMQ error code. You can use the SAS function SYSMSG()
to obtain a textual description of the return code.
Example: Example
This example commits
a unit of work from an MSMQ transaction.
length msg $ 200;
rc=0;
CALL MSMQCOMMITTRANS(transobj, rc);
if rc ^= 0 then do;
put 'MSMQCommitTrans: failed';
msg = sysmsg();
put msg;
end;
else put 'MSMQCommitTrans:
succeeded';