V5R1 in Coexistence. I use the Ops Navigator since we don't have the SQL software on the AS400.
Anyways, if there are no 'true' indexes on the F0911, this statement will always return 0 rows. It will only return the OneWorld indexes (those that end in _n), it will not return the logicals. The second larger SQL statement using the NOT IN should pick this up and report the F0911 as not having the proper OneWorld indexes.
Before I ran the OMW index on the F0911, I got 0 rows too for the SQL statement:
SELECT index_name FROM qsys2.sysindexes WHERE table_schema = 'yourdatalib' AND table_name = 'F0911'
Now I get 26 rows.
Before I ran the DSPDBR on the F0911, I would get 53 logicals showing.
Now after creating the F0911 indexes in OMW, I get 77 dependents on the file (51 logicals + 26 Oneworld).
>>DSPDBR shows many F0911 logicals. Is it possible this file
>>contains only OW indexes not the World logicals? or perhaps
>>it is OS400 version dependent?
DSPDBR will only show the logicals until you run the index creation then you'll see the _1 files also so I don't think it's version dependent.
---------------------------------------------
** Anyone - Help **
My question is how can I run the SQL statement in Ops Navigator pointing to the OneWorld Central Objects datasource so I can run the second larger SQL statement?
---------------------------------------------
Grant