This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > %SYS namespace > SYS.Compatibility

SYS.Compatibility

abstract class SYS.Compatibility extends %SYSTEM.Help

This class contains methods which are used to maintain compatibility with previous versions.

Method Inventory (Including Private)

Methods (Including Private)

classmethod SetGlobalNameTruncated(Value As %Boolean = 0) as %Status
Enable access of a global with a name which is truncated by the compiler and ends with a "." (DEPRECATED)
When a global name is larger than 31 characters, the compiler truncates it to the first 31 characters. If the truncation results in the final character being a period ("."), the name is illegal and should cause an error. But previous versions of the compiler did not detect the illegal name and could create an invalid global or LOCK entry.
This method allows you to continue to access an invalid global that was created under the old version, or to continue using LOCK operations on an invalid name.
You should call this method at system startup only if you have invalid globals that need to be accessed. It is meant for compatibility only, until you can migrate your global structure to use a valid global name, or convert your LOCK code to use a valid name.
If you do need to use this method, edit your SYSTEM^%ZSTART or ZSTU code and call it from there.

s Status=##Class(SYS.Compatibility).SetGlobalNameTruncated(1) Parameters:
Value = 0 - (Default) Do not allow a 31 character global name to end in "."
Value = 1 - Allow a 31 character global name to end in "."

Inherited Members

Inherited Methods (Including Private)