|
Hi Vern,
thanks - but I meant it the other way around.
If I'm developing today, I mostly start with SQL in iACS. And when the SQL statement is ready, I copy it from iACS to the RPG source, and replace my typical "constants" with my RPG :hostVariables.
Of course, if I have to extract a statement, I try to fill them with iACS. Now with the "bind:" prefix in VScode SQL extension, it might be even easier to run SQL statements that were extracted from an RPG source.
But I my comment, the other way around was meant, as the OP had a problem with SQL statements, that seem to run in iACS but not embedded.
Kind regards,
Daniel
Am 07.10.2025 um 09:44 schrieb Vern Hamberg via RPG400-L<rpg400-l@xxxxxxxxxxxxxxxxxx>:
Hi Daniel
You mention "...replacing constants with host variables..." - I believe you can enter host variables and parameter markers in RSS now, and it will prompt you for values. I say, I believe, because it seems I've actually done it. Nonetheless, if statements with such elements are pulled from RPG, say, using the tool in RDi, then that works.
So it could be a shorter cut, perhaps.
*Regards*
*Vern Hamberg*
IBM Champion 2025<cid:part1.f9RRDJC0.kxH3wQTV@centurylink.net> CAAC (COMMON Americas Advisory Council) IBM Influencer 2023
On 10/6/2025 8:07 PM, Daniel Gross wrote:--
As I have already written, it would be nice, to have one or two examples.
My typical development process today is - trying to implement as much as possible and reasonable in SQL using iACS-RSS - then copy/paste the SQL into the RPG source and replacing constants with host variables and what else.
I never had a query/statement that didn't work as expected. What I had lately where some complex SQL queries, that I couldn't pack into a view. But I had never a problem with putting the statement into SQLRPGLE-
Regards,
Daniel
Am 06.10.2025 um 17:39schriebdfreinkel@xxxxxxxxxxxxxxxxx:
I do nearly all my development using SQL and use the same process as Richard (Testing SQL statements in ACS). I agree with Richard and have struggled with stupid differences, sometimes putting in calls to IBM for assistance.
Darryl Freinkel
A4G
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a messageemail:RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:https://lists.midrange.com/mailman/listinfo/rpg400-l
oremail:RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
athttps://archive.midrange.com/rpg400-l.
Pleasecontactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email:RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit:https://lists.midrange.com/mailman/listinfo/rpg400-l
or email:RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
athttps://archive.midrange.com/rpg400-l.
Please contactsupport@xxxxxxxxxxxxxxxxxxxx for any subscription related questions.
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.