11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Caché</strong> <strong>ObjectScript</strong> Special VariablesNotes$QUIT and Error ProcessingThe $QUIT special variable is particularly useful during error processing when the sameerror handler can be invoked at context levels that require an argumented QUIT and at contextlevels that require an argumentless QUIT.See the Error Handling in Using <strong>Caché</strong> <strong>ObjectScript</strong> for more information about error processing.See Also• DO command• QUIT command• XECUTE command$ROLESContains the roles assigned to the current process.$ROLESDescription$ROLES contains the list of roles assigned to the current process. This list of roles consistsof a comma-separated string that can contain both User Roles and Added Roles.A role is assigned to a user either by using the SQL GRANT statement, or by using theSystem Management Portal's Security Management options to edit the definition of the Userto assign a role. A role can be defined using the SQL CREATE ROLE statement and deletedusing the SQL DROP ROLE statement. A role must be defined before it can be assigned toa user. A role can be revoked from a user using the SQL REVOKE statement.The $ROLES list does not contain a listing of roles assigned to roles. This hierarchicalassignment of roles is used within SQL exclusively, and is not available through <strong>Caché</strong> SystemSecurity.When a process is created using the JOB command, it inherits the same $ROLES and$USERNAME values as its parent process.444 <strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong>

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

Saved successfully!

Ooh no, something went wrong!