|
I have a program which accepts the SQL statements user enters and
these statements are passed onto a SQLRPGLE program which declare a
scroll cursor and prepares the SQL from the string which holds input
parameter. It then issues a fetch first statement into a field which
will hold the query result. I am checking SQL code to determine
whether the entered query is valid or not. I close the cursors after
this. If first time I entered a valid SQL I get the result..for
second time if some irrelevant data is entered still the fetch
statement returns previous SQL's output and SQLCOD also is zero as
if I entered correct SQL. Pls help me to figure out the problem
here.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.