Class Reference
IRIS for UNIX 2019.2
InterSystems: The power behind what matters   
Documentation  Search
  [%SYS] >  [SYS] >  [Compatibility]
Private  Storage   

abstract class SYS.Compatibility extends %SYSTEM.Help

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

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1


Summary

Methods
Help SetGlobalNameTruncated


Methods

• 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 "."


Copyright (c) 2019 by InterSystems Corporation. Cambridge, Massachusetts, U.S.A. All rights reserved. Confidential property of InterSystems Corporation.