How to Determine Where a Mapped Package is Located Programmatically?
I've found a couple of methods that will tell me whether a package is mapped from another database, but not which database. Is there such a method/routine?
Product version: IRIS 2021.1
Discussion (2)1
Comments
A simple
write ##class(%SYS.Namespace).GetPackageDest(yourNsp, yourPackage)should do the trick
The same goes for globals and routines
write ##class(%SYS.Namespace).GetGlobalDest(yourNsp, yourPackage)
write ##class(%SYS.Namespace).GetRoutineDest(yourNsp, yourPackage)if yourNsp is not provided, the current Nsp will be used
A big Thank You and Happy Holidays, Julius! ![]()