× 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.




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?

Thank you,

Doug


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.