Written by

VP and COO (Retired) at Healthcare Integration Consulting Group
MOD
Question 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

Comments

Julius Kavay · Dec 20, 2021

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

0
Jeffrey Drumm  Dec 20, 2021 to Julius Kavay

A big Thank You and Happy Holidays, Julius! yes

0