METASEC_ENDTRAN Function

Ends the TC.

Syntax

rc = METASEC_ENDTRAN(uri, tc, flags);

Required Arguments

uri (in)
specifies a character variable or constant that contains the URI of the object to be manipulated by the transaction.
tc (in)
specifies a character variable that contains the handle of the TC to be ended.
flags (in)
specifies an integer bit field that specifies whether the transaction should be committed. Use one of the following macro variables from %MDSECCON(). A value is required. The function will return an error if you do not specify a value.
_SECAD_COMMIT_TC Commit transaction.
_SECAD_DISCARD_TC Do not commit transaction.
For more information, see Using the %MDSECCON() Macro.

Return Values

0
Successful completion.
-1
Unable to connect to the metadata server.
-3
No objects match the specified URI.
-4
Numeric value (flag) exceeds the maximum usable value.
-5
No TC handle was specified.
-99 or less
Other error; see log or sysmsg() for information.

Details

This function calls the ISecAdmin method EndTransactionContext(). For information about the method, see SAS Open Metadata Interface: Reference and Usage.

See Also