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



The key idea is this: missing parms are ok in a program, unless you try to use them. It is only the use of them that causes the problems. So, if your program doesn't use the missing parm, you are golden. Anyway that you solve that issue is fine.

My own preference is to use an externally defined data structure for the parm, and have just one parm. Then, missing data is no problem (as long as you initialize numeric fields).

James H H Lampert wrote:
I'm not entirely sure whether I was clear with the initial question.

What I meant was optional parameters to the program itself. Not to a prototyped procedure call within it.

Certainly an easy enough thing to do with MI or C. But I don't recall whether or not it's doable in RPG.

I've already figured out another way of doing what's needed, and I'm going to run an experiment to see what happens if you call a program with fewer parameters than specified, but I'm still curious. Perhaps morbidly so.

--
JHHL

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.