×
The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.
We have an SQLRPGLLE program that queries a database on a remote
machine, thus placing an SQLPKG on the remote machine.
The program executes a number of SQL queries over the RDB.
The following SQL in particular started returning erroneous data:
exec sql
SELECT SUM(STRING_AMOUNT)
into :postage$
FROM REMOTESYS/RMTLIB/mrzpstv01
WHERE MAILING_NO IN (:nMail1, :nMail2, :nMail3);
It turns out the remote view (mrzpstv01), was changed and a new column
was inserted. So instead of returning the sum of 'STRING_AMOUNT' (BTW
this is the real column name), it started returning a sum of the column
prior to it in the view layout. The new column that was insert into the
view was inserted prior to both of the columns in question.
We were surprised by this result.
I am curious - can we have remote queries in our SQLRPGLE programs that
will automatically adjust when the underlying views or tables are
changed?
Or do we need to recompile and recreate the SQLPKG each time?
Both machines are on IBM I V7R2.
Thanks in advance
Paul T
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.