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



Interesting way to look at it. The original question was asked by a non-programmer, so of course I wondered what exactly the real question was. What was the person really trying to determine? Sometimes that is a lot more interesting question.



Scott Klement wrote:
On Fri, 4 Aug 2006, Booth Martin wrote:
By defining a data structure with all of the fields you could then have
one parm but have passed a very large number of values?

Ummm... but as you point out, that's only one parameter. The question was how many parameters can you have, not how many items in a data structure.

Heck, you could pass a pointer to a linked list and have a virtually unlimited number of items in one parameter. (The only limit would be the number of simultaneous allocations supported by the operating system, or the amount of storage on your system, which are very large numbers.)

But since the question was "how many parameters" the answer is 255 for a program, and 399 for a procedure.

Though, the most parameters I've ever seen passed to a single RPG program was 51 -- and I though that program was very poorly designed for requring that many parameters. It should've been a service program with multiple entry points.

Using the Unix paradigm (or Qshell) I can see wanting a lot of parameters, but with the standard i5/OS paradigm, I just can't see why you'd ever need more than 20 or so.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.