Skip to main content

%SYSTEM.Version

abstract class %SYSTEM.Version extends %SYSTEM.Help

This class provides various product version information.

You can use it via the special $system object:

  Write $system.Version.GetBuildOS()
  

Method Inventory

Methods

classmethod FeatureBits(bit As %Integer = "") as %Binary
Return all the feature codes stored in $zversion(0)

You can then test this for specific features using $zbitget(return,bit)

If you pass in a value for bit then this will test for this specific bit and return 1 if it is set otherwise 0.

classmethod Format(Format As %Numeric = 0, zv As %String = $zv) as %String
Formats the version info according to the following format types:
  • 0 - $ZV
  • 1 - Product
  • 2 - Product (Platform)
  • 3 - Product (Platform) Version
  • 4 - Product (Platform) Version (Build)
  • 5 - Version (Build)
  • Other - ""
classmethod GetBuildDate(zv As %String = $zv) as %String
Returns the date the product was built in $HOROLOG format.
classmethod GetBuildNumber(zv As %String = $zv) as %Integer
Returns the build number for the product.
classmethod GetBuildOS(zv As %String = $zv) as %String
Returns the operating system for which the product was built.
classmethod GetBuildTime(zv As %String = $zv) as %String
Returns the time of day the product was built in $HOROLOG format.
classmethod GetCompBuild(component As %String = "SYS") as %Integer
Returns the build number for the specified component. (Deprecated)
classmethod GetCompBuildDate(component As %String = "SYS") as %String
Returns the build date for the specified component. (Deprecated)
classmethod GetCompBuildOS(component As %String = "SYS") as %String
Returns the operating system a Caché component was built for. (Deprecated)
classmethod GetCompBuildTime(component As %String = "SYS") as %String
Returns the Time of build for a Caché component. (Deprecated)
classmethod GetCompPatchId(component As %String) as %String
Returns the patch ID[s] included in a component of this version of Caché (Deprecated)
classmethod GetCompilerMajorVersion() as %Numeric
Returns the major version number of the Caché compiler.
classmethod GetCompilerMinorVersion() as %Numeric
Returns the minor version number of the Caché compiler.
classmethod GetCompilerVersion() as %Numeric
Returns the major.minor version number of the Caché compiler.

The system can only execute object code compiled with the same major version number. It can execute object code compiled with any minor version number that is less than or equal to the current minor version.

classmethod GetComponents() as %List
Returns a list of components used by the %Version class. (Deprecated)
classmethod GetISCComponentVersion(Product As %Integer = 0, Component As %String = "") as %String
Returns the ISC Product component's installed version string.
Product: Cache = 1, Ensemble = 2, HealthShare = 3
At this time, Caché and Ensemble do not have components, so this method does not return anything for these products.
classmethod GetISCComponentVersionList(Product As %Integer = 0) as %List
Return a %List of Component:Version for all components of ISC Product.
At this time, Caché and Ensemble do not have components, so this method does not return anything for these products.
classmethod GetISCComponents(Product As %Integer = 0) as %List
Returns the installed components for the ISC Product as a %List.
Product: Cache = 1, Ensemble = 2, HealthShare = 3
At this time, Caché and Ensemble do not have components, so this method does not return anything for these products.
classmethod GetISCProduct() as %Integer
Returns the installed ISC product code. Cache = 1, Ensemble = 2, HealthShare = 3
classmethod GetKernelCompiler() as %String
Returns the version of the C compiler used to build the kernel
classmethod GetKernelLinker() as %String
Returns the version of the Linker used to link the kernel
classmethod GetKernelOrigin() as %String
Returns the string identifying who linked the kernel

InterSystems or User

classmethod GetMajor(zv As %String = $zv) as %String
Returns the major version number for the product.
classmethod GetMinor(zv As %String = $zv) as %String
Returns the minor version number for the product.
classmethod GetNumber(zv As %String = $zv) as %String
Returns the major.minor[.point] version number for the product.
classmethod GetOS(zv As %String = $zv) as %String
Returns the OS for which the product was built.
classmethod GetPatchId(zv As %String = $zv) as %String
Returns the patch ID[s] included in this version of the product;
classmethod GetPlatform(zv As %String = $zv) as %String
Returns the platform for which the product was built.
classmethod GetPoint(zv As %String = $zv) as %String
Returns the point version number for the product.
classmethod GetProduct(zv As %String = $zv) as %String
Returns the product name.
classmethod GetVersion(zv As %String = $zv) as %String
Returns a string containing complete version information.
classmethod Is64Bits() as %Boolean
Is this Cache a 64-bit platform?

Returns a boolean value which tells if the Cache is 64-bit platform.

classmethod IsBigEndian() as %Boolean
Is this system built for a big endian platform?

Returns a boolean value which tells if the platform uses big endian bit ordering.

classmethod IsSingleUser() as %Boolean
Is this a single-user server kit?

Returns a boolean value which tells if the product server is running a single-user evaluation (_SU) kit.

classmethod IsUnicode() as %Boolean
Is this a UNICODE system?

Returns a boolean value which tells if the product server is a UNICODE system.

classmethod ListISCComponents(Product As %Integer = 0)
Displays all Components for the ISC Product to the current I/O Device.
Product: Cache = 1, Ensemble = 2, HealthShare = 3
At this time, Caché and Ensemble do not have components, so this method does not return anything for these products.
classmethod ListISCComponentsVersions(Product As %Integer = 0)
Displays all Components:Version for the ISC Product to the current I/O Device.
Product: Cache = 1, Ensemble = 2, HealthShare = 3
At this time, Caché and Ensemble do not have components, so this method does not return anything for these products.
classmethod SystemMode() as %String
Returns the SystemMode set by the System Management Portal. The SystemMode is displayed in the Title of the System Management Portal web page. Currently, SystemMode string values supported by the System Management Portal are: "LIVE", "TEST", "DEVELOPMENT" and "FAILOVER".

Returns empty string when a SystemMode has not been set.

Inherited Members

Inherited Methods

FeedbackOpens in a new tab