Correct RHD. If not fully qualified, system tables (including VSTs) return data from the database with the DICTDB alias. By default it will be the first connected database.
You can show which DB it is with "display ldbname("dictdb")". If you want data from multiple DBs you can do this by iterating over your connected DBs and changing the DICTDB alias. Note that you can't set and reference the alias within the same procedure. See this thread for an example.
As Stefan noted in that thread you can do it in a single procedure if you're comfortable with dynamic queries.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.