Technically, that is "dynamic" sql. However, I would think the only
reason to deny dynamic sql would be the risk of "sql injection". The only
possible method of sql injection in your case would be if someone were to
store the injection in one of the columns selected. Nothing you wouldn't
also be susceptible to with static sql.
This thread ...
Re: Is there a better way to run SQL in a CL pgm?, (continued)
This mailing list archive is Copyright 1997-2020 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