Question Meenakshi Muthu · Jul 6, 2024 Global can be shared by all namespace #InterSystems IRIS Could you please tell me, How do we create a global that can be shared by all namespaces?
Robert Cemper · Jul 6, 2024 4 options: map it to namespace %ALL naming it with % as first character places in %SYS namespace (e.g. ^%MUTHU) that traditional approach is possible but not recommended naming it ^mtemp.*, ^CacheTemp*, ^IRIS.Temp* allocates it in db IRISTEMP subscript level mapping allows partial mapping (e.g. to IRISTEMP)
Kamal Suri · Jul 6, 2024 I will say create a new database named SHARED Create Global in that database like ^MUTHU (without %) Add mapping in %ALL namespace (if there is no such namespace then you can create) [Map.%ALL]Global_MUTHU=SHARED now you can access this global from all namespaces.
4 options:
I will say create a new database named SHARED
Create Global in that database like ^MUTHU (without %)
Add mapping in %ALL namespace (if there is no such namespace then you can create)
[Map.%ALL]
Global_MUTHU=SHARED
now you can access this global from all namespaces.