11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

$TLEVEL$TLEVELContains the current nesting level for transaction processing.$TLEVEL$TLDescription$TLEVEL contains the current nesting level in transaction processing. The number ofTSTART commands issued before <strong>Caché</strong> encounters a TCOMMIT or TROLLBACKdetermines the nesting level. Each TSTART command increments $TLEVEL by 1. EachTCOMMIT command decrements $TLEVEL by 1. A TROLLBACK command resets$TLEVEL to 0.This special variable cannot be modified using the SET command. Attempting to do so resultsin a error.See Also• TCOMMIT command• TROLLBACK command• TSTART command• Using <strong>ObjectScript</strong> for Transaction Processing in Using <strong>Caché</strong> <strong>ObjectScript</strong>$USERNAMEContains the user name for the current process.$USERNAMEDescription$USERNAME contains the full user name for the current process. The full user name consistsof the name and system address of the current user; for example: Mary@jupiter.com. Youcannot use the SET command or the NEW command to modify this value. However, NEW$ROLES also stacks the current $USERNAME value.Commonly, the $USERNAME value is the user name specified at connection time. However,if unauthenticated access is permitted, a user terminal or an ODBC client may connect to<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 453

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!