|
You simply (simply?) pass the variable using the %ADDR built-in so the prototype doesn't know what kind of variable it is. Then you also need to pass additional parameters that describe the variable to the proc so that you don't screw up the storage and have a learning experience. Bob Cozzi Cozzi Consulting www.rpgiv.com -----Original Message----- From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Brian Parkins Sent: Wednesday, October 15, 2003 10:02 AM To: RPG programming on the AS400 / iSeries Subject: Re: Help with parameter passing Scott, you said in an earlier append: "...Anyway, the hard part .... is ... going to be figuring out how to write RPG code that works with any possible variable type, with any possible length and any possible number of decimal places. That'll be a lot of work. It's doable though... I've done it.." This is EXACTLY what's require for Embedded SQL when processing Dynamic Varying List SELECT statements. Care to share? Brian Parkins _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo/rpg400-l or email: RPG400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
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.