Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see Why Migrate to InterSystems IRIS?

System Object

The System object provides access to properties and methods of Caché components.

Description

The System object is an intrinsic object with global scope. There is no need to create an instance of it.

Through the System object programs have access to properties and methods related to the following components: Activate, CSP, Encryption, Help, OBJ, SQL and Version.

For detailed information on the System object, look at the class definitions in the %SYSTEM package.

Examples

The following example demonstrates how to use the System object:

Println System.Version.GetCompBuildOS() 
    ' prints the OS version
    ' for which this Caché Version was built
Println System.Version.GetNumber()      'prints the Version number
Println System.Version.GetVersion()     'prints the Version string

Please note that the System object in ObjectScript is referenced by $System and in Caché Basic by System.

Note

The System object may be referenced anywhere in the basic program.

Feedback