User bio

my video https://youtu.be/zx6WoApljBI
my business story https://community.intersystems.com/post/45-years-intersystems-1978-2023

  • main languages: German, English, Italian, French, Spanish, Latin, ..
  • private: married since 1969, 3 successful children

  

Member since Jul 21, 2017
Replies:

As almost any AI it lives from already posted questions
If the subject was never touched before, there is just no chance of finding a suitable answer

Example #5):  I have never met any question related to the COS follows operator ] 

Example #2)  I never met any mention of global ^ROUTINE or ^rOBJ or similar

So where might the knowledge come from if never been mentioned before ?

There are several hurdles to consider:

  • Scanning compiled class storage just shows definitions
  • Journals show active changed globals
  • I see no way for static globals that are written once, but just referenced without changes
  • Finally, globals might also be used without any class around
  • On top:  cross namespace references for classes and globals might apply as well   

Quite a can of worms.

You may create an SQL PROCEDURE to serve your needs: 

CREATE PROCEDURE %Z.NSPACE() RETURNS VARCHAR
Language ObjectScript
{
 set (%,%r)=""
 for  set %=$o(^|"%SYS"|SYS("CONFIG","CACHE","Namespaces",%)) quit:%=""  set %r=%r_%_";"
 quit %r
}

and it runs like this, assuming you have access to Namespace %SYS

USER>do $system.SQL.Shell()
SQL Command Line Shell
----------------------------------------------------

The command prefix is currently set to: <<nothing>>.
Enter q to quit, ? for help.
USER>>select %Z.NSPACE()
3.      select %Z.NSPACE()

Expression_1
%ALL;%SYS;DOCBOOK;SAMPLES;USER;

1 Rows(s) Affected
statement prepare time(s)/globals/lines/disk: 0.0006s/5/160/0ms
          execute time(s)/globals/lines/disk: 0.0005s/6/425/0ms
                          cached query class: %sqlcq.USER.cls4
---------------------------------------------------------------------------
USER>>
Open Exchange applications:
Certifications & Credly badges:
Robert has no Certifications & Credly badges yet.
Followers:
Following: