Jeffrey Drumm · Dec 20, 2021

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
0 166
Discussion (2)1
Log in or sign up to continue

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! yes