Re: Inconsistency with SQL in ACS vs RPG

Daniel Gross <[email protected]>
Newsgroups gmane.comp.lang.as400.rpg
Message-ID <[email protected]>
Hi Vern,

if you do, please let us know the URL to vote. 

I'm at TechXchange right now, and time flies - but I would have time tomorrow, to write it. 

I would not only like the interactive prompt thing - it would also be nice to have that "bind:" prefix to supply values from the script. And as they already done that tha way in VScode:Db2i it might be a good idea to align both systems. 

Kind regards,
Daniel 



> Am 08.10.2025 um 17:51 schrieb Vern Hamberg via RPG400-L <[email protected]>:
> 
> Hi all
> 
> We can also save the SQL that contains host variables or parameter markers - it's just a text file.
> 
> Daniel, I'm also not happy that I have to enter a value for each instance of a host variable. I go back to how it works in QMQRY, the same substitution string needs the value entered only one time. I know, different interface.
> 
> But one of us should submit an Idea for this to change. I'll look to see if there might already be one, maybe submit it myself - what a concept, eh?  :)
> 
> *Regards*
> 
> *Vern Hamberg*
> 
> IBM Champion 2025 <cid:[email protected]> CAAC (COMMON Americas Advisory Council) IBM Influencer 2023
> 
> 
>> On 10/8/2025 9:09 AM, [email protected] wrote:
>> Daniel
>> 
>> In RSS try creating variables first and then populate the variables with a SET statement.
>> 
>> You can then save the SQL for later use and you will not have to re-enter any values.
>> 
>> Darryl Freinkel
>> A4G
>> Telephone: 770.321.8562
>> 
>> -----Original Message-----
>> From: RPG400-L<[email protected]> On Behalf Of Daniel Gross
>> Sent: Wednesday, October 8, 2025 8:49 AM
>> To:[email protected]
>> Subject: Re: Inconsistency with SQL in ACS vs RPG
>> 
>> I do that occasionally - but sadly the pseudo-host-variables in iACs are ...
>> 
>> a) not persistent - so I have to re-enter them at every execution again and again - VScode DB2 for I has a new "bind:" prefix - I have to look into this
>> 
>> b) if you have the same host-variable multiple times, you have to enter it multiple times - which is also less than ideal
>> 
>> But all in all I use that feature here and there.
>> 
>> Regards,
>> Daniel
>> 
>> 
> --
> This is the RPG programming on IBM i (RPG400-L) mailing list
> To post a message email: [email protected]
> To subscribe, unsubscribe, or change list options,
> visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: [email protected]
> Before posting, please take a moment to review the archives
> at https://archive.midrange.com/rpg400-l.
> 
> Please contact [email protected] for any subscription related questions.
> 
-- 
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: [email protected]
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: [email protected]
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact [email protected] for any subscription related questions.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.