|
Well, there is iNav's "Generate SQL" option. If you do use STRSQL to
create an sql object you could use that to create the source. Then you
could store that as a stream file or as a source file member. iNav's run
sql script favors stream files. RUNSQLSTM will use either a stream file
or a source file member (at least at 7.1)
Source file . . . .
Library . . . . .
Source member . . .
Source stream file .
Given that, do you ever really need to store the source?
And, since someone may have used something to alter a
column, alter authority, add a column label, etc is your source really
accurate? Really, how often do you alter the security of a file using an
sql statement versus some other method?
To generate a test library with 500 tables, 2000 indexes, several hundred
views, a plethora of constraints (referential and otherwise) are you
really going to run all those source members or are you going to save the
library and restore it to a different name?
In summary, you can try retaining SQL source but don't expect it to be
current.
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.