|
Well, thanks! Although I wouldn't say that having to parse the text
was trivial as there can be multiple joins and multiple FROM clauses.
I did want to be able to automatically recreate views when modifying
a physical file. I can go from DSPDBR to SYSVIEWDEP to SYSVIEW to get
the source to create the view, but executing that does not seem to be
an obvious matter either.
I think it would be best to store the instructions in a source file
or program and use the view's system name to identify which program
or source to use to create the view.
CRPence wrote:
Although parsing the TEXT is somewhat trivial for the TABLE names
referenced in the FROM clause, I believe what you are looking for
is SYSVIEWDEP instead of SYSVIEWS to see the relationships.
David FOXWELL wrote:
There doesn't seem to be anyway of finding the table used for the
view without looking at the TEXT field.
Maybe DSPDBR first and then join on SYSVIEWS. Is that reasonable?
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.