|
Has anyone else experienced this:
There is an SQLRPGLE program with subprocedures, some of the
subprocedures use SQL, and others do not. The problem is that the
SQL Precompiler is recognizing the SQL code, and adding the SQL Data
Structure, but, it adds the Data Structure as a local DS in one of
the subprocedures, AND the subprocedure where the DS is added does
not have any SQL code in it. Moreover, the other subprocedures that
do have SQL, and need the DS cannot see it because the DS that was
added is defined locally to that subprocedure.
The first occurrence of the EXEC SQL command is in the mainline, but
only to set the SQL COMMIT parameter to *NONE. The first occurrence
of an actual SQL command to execute is in one of the subprocedures.
We are on V7R1.
Are there PTFs that can address this, or is it a known problem that
the SQL precompiler does not work well with subprocedures?
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.