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.

$SYSTEM$SYSTEMContains system information about system objects.$SYSTEM$SYSTEM.class.method()Description$SYSTEM can be invoked as either a special variable, or as a class which invokes methodsthat return system information.$SYSTEM as a special variable contains the current system name and the name of the currentinstance of <strong>Caché</strong>, separated by a colon (:). These names are in uppercase letters, and if <strong>Caché</strong>is used in the name of your current instance of <strong>Caché</strong> it is spelled without an accent on thefinal letter. For example:MYCOMPUTER:CACHE2The same information can be returned using the $ZUTIL(131,1) function.$SYSTEM as a class provides access to a variety of system objects. You can invoke a methodthat returns information, or a method that performs some operation such as upgrading orloading and returns status information. <strong>Caché</strong> supports several classes of system objects,including the following:• Version: for version numbers of <strong>Caché</strong> and its components• SYS: for the system itself• OBJ: for Objects• SQL: for SQL queries• CSP: for <strong>Caché</strong> Server PagesNote that object class names and method names are case-sensitive. Specifying the wrong casefor these names generates a or error. If you do not specify parentheses with the method name, it generates a error.For further information on using $SYSTEM to access these objects, refer to the Using Objectswith <strong>Caché</strong> <strong>ObjectScript</strong> chapter of Using <strong>Caché</strong> Objects. $SYSTEM can access the System<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 449

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

Saved successfully!

Ooh no, something went wrong!