^%NSP ネームスペース情報を表示

 ^%NSPユーティリティは、指定されたネームスペースの内容を表示します。

動作例

 ^%NSPユーティリティを実行すると、各ネームスペースのマッピング情報が表示されます。
^%SYS.GXLINFO やSHOWNSP^%GXLINFO(namespace)でも同等の内容が取得できます。
USER>Do ^%NSP

Device: 
Right margin: 80 => 

*******************************************************************************
Namespace: %CACHELIB
Default globals location:  directory c:\intersystems\cache\mgr\cachelib\ (local)
Default % routines location: directory c:\intersystems\cache\mgr\cachelib\ (local) 
*******************************************************************************
Global name/Range         Dirset    Target directory
-------------------------------------------------------------------------------
   (:%cspSession)      ->           c:\intersystems\cache\mgr\
                       *>           c:\intersystems\cache\mgr\
   [%cspSession]       ->           c:\intersystems\cache\mgr\cache\
                       *>           c:\intersystems\cache\mgr\cache\
   (%cspSession:%q)    ->           c:\intersystems\cache\mgr\
                       *>           c:\intersystems\cache\mgr\
   [%r:%sqlcq]         ->           c:\intersystems\cache\mgr\
                       *>           c:\intersystems\cache\mgr\
   (%sqlcq:%utility)   ->           c:\intersystems\cache\mgr\
                       *>           c:\intersystems\cache\mgr\
       [("%CACHELIB"):("%CACHELIB")]
                       ->           c:\intersystems\cache\mgr\cache\

(中略)

Routine name/Range        Type      Dirset              Target directory
-------------------------------------------------------------------------------
   [%:%SYS.)              INT                           c:\intersystems\cache\mgr\cachelib\
   [%SYS.:%SYS/)          INT                           c:\intersystems\cache\mgr\cachelib\
   [%SYS/:%Z)             INT                           c:\intersystems\cache\mgr\cachelib\
   [%Z:%ZEN.)             INT                           c:\intersystems\cache\mgr\cachelib\
   [%ZEN.:%ZEN/)          INT                           c:\intersystems\cache\mgr\cachelib\
   [%ZEN/:%a)             INT                           c:\intersystems\cache\mgr\cachelib\
   [%a:%sqlcq.pCACHELIB.)
                          INT                           c:\intersystems\cache\mgr\cachelib\
   [%sqlcq.pCACHELIB.:%sqlcq.pCACHELIB/)
                          INT                           c:\intersystems\cache\mgr\cache\

(中略)

*******************************************************************************
Namespace: %SYS
Default globals location:  directory c:\intersystems\cache\mgr\ (local) 
Default % routines location: directory c:\intersystems\cache\mgr\ (local) 
*******************************************************************************
Global name/Range         Dirset    Target directory

(以下、各ネームスペースについて繰り返し)



          [] shows redirection scheme for one global;
          [:] shows redirection scheme for a
               range between 2 globals; a square bracket [] means that
               left or right margin is inclusive, while a parenthesis
               means that the margin is exclusive.
               An empty parenthesis before or after ':', that is 
               (: or :) , means that the redirection scheme is 
               effective from the start of alphabet space, or till
               its end, respectively

               A subscript mapping is missing if it is the same as 
               the default mapping of the global. The default mapping
               of a global is missing if it is the same as the default
               global dataset.

          ->  implicit
          *>  lock target
USER>
 
LIST^%NSP を実行すると、現代のインスタンスのネームスペースの一覧が表示されます。
USER>Do LIST^%NSP

Here are the defined namespaces:
     %SYS
     ADAT
     DL
     DOCBOOK
     SAMPLES
     TEST1
     TEST2
     USER

その他

プログラムからネームスペース情報を取得するには D List^%SYS.NAMESPACE(.x) を実行します。
USER>Do List^%SYS.NAMESPACE(.x)
 
USER>ZW x
x("%SYS")=$lb(1,0)
x("DOCBOOK")=$lb(1,0)
x("SAMPLES")=$lb(1,0)
x("USER")=$lb(1,0)
Update