Skip to main content

This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).

System Object

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


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.


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
Copy code to clipboard

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


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

FeedbackOpens in a new window