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



On 8/24/2016 2:22 PM, Buck Calabro wrote:

I probably wouldn't use this in production; instead I'd do the Rexx part
in a sub-procedure that pulls entries off a queue (user space, data
queue, heap, array, whatever) one at a time and does the comparison. I
went through the exercise Just Because, and also because I realised
there are too few examples of RPG interacting with Rexx.


Very cool. I have tried a couple of times in the past to get RPG / REXX interaction working, and gave up both times.

But I'm wondering about how a call to your subprocedure would look. The caller would have a statement to push each entry onto the queue, which would somewhat decouple the "parameters" from the call.

Seems like it would be much easier, although much much less fun, to just have a bunch of procedures, one for each basic data type, with a zillion parameters all except the first *NOPASS, where all the procedures look like this:

max = p001;
if %parms() >= %parmnum(p002) and p002 > max;
max = p002;
endif;
if %parms() >= %parmnum(p003) and p003 > max;
max = p003;
endif;
etc ...
return max;


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

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.