Home / InterSystems Programming Tools Index / Tools Index / Globals

InterSystems Programming Tools Index
Previous section           Next section
InterSystems: The power behind what matters   

Manage globals programmatically (import, export, get size, set collation, configure mappings, and so on).
Background Information
InterSystems IRIS stores all data in its databases in globals. A single set of rules governs the names of globals and the names of their subscripts (that is, different languages do not have different rules). See Introduction to Globals in the Orientation Guide for Server-Side Programming and see the book Using Globals.
You can define global mappings so that you can access data in a non-default location; see Configuring Namespaces in the chapter “Configuring InterSystems IRIS” in the System Administration Guide. Typically you do this within the Management Portal.
The Management Portal also provides options for examining and managing globals. See “Managing Globals” in Using Globals.
Available Tools
The fundamental tool for working with globals is the ObjectScript language. In addition, InterSystems provides the following tools:
This structured system variable returns information about globals.
Availability: All namespaces.
%Global class
Provides the following class methods:
Availability: All namespaces.
%GlobalEdit class
Enables you to see and modify properties of globals. It provides the methods like the following:
Availability: All namespaces.
%ExtentMgr.Util class
Maintains extent definitions and globals registered for use by those extents. It includes the following methods:
The %ExtentMgr tables are visible to SQL and can be queried directly. For details, see the reference for %ExtentMgr.Util.
Availability: All namespaces.
%SYS.GlobalQuery class
Provides the following queries:
Availability: All namespaces.
%Studio.Global class
Provides an interface to globals. It includes methods like the following:
It also provides a couple of queries.
Availability: All namespaces.
Provides the following methods that you can use with globals:
Availability: All namespaces.
Config.MapGlobals class
Enables you to modify and obtain information about the [] section of the CPF file, which defines global mappings. (Note that you usually perform this configuration via the Management Portal, as noted above.)
The class also provides the List() class query.
The class documentation includes examples and details.
Availability: %SYS namespace.
%Installer.Manifest class and other classes in the %Installer package
Enable you to define and use an installation manifest. Among other tasks, you can configure global mappings.
Availability: All namespaces.
The special variable $SYSTEM is bound to the %SYSTEM package. This means that instead of ##class(%SYSTEM.class).method(), you can use $SYSTEM.class.method().

Previous section           Next section
View this book as PDF   |  Download all PDFs
Copyright © 1997-2019 InterSystems Corporation, Cambridge, MA
Content Date/Time: 2019-04-10 14:45:56