M routines cannot modify $TLEVEL with SET.
IF $TLEVEL TROLLBACK
This example performs a TROLLBACK if a transaction is in progress. A statement like this should appear in any error handler used with transaction processing. For more information on transaction processing, see ChapterA 5: a??General Language Features of Ma??.