• Subject: Re: variable parameters
  • From: "David Morris" <dmorris@xxxxxxxxxxxxx>
  • Date: Mon, 26 Jul 1999 11:53:45 -0600

Vishal,

Yes, you can pas a variable number of parameters.   The best and 
most flexible way to define parameters is via a prototype.  For more 
information about passing optional parameters using a prototype in 
RPGIV, look in the manual at the area that describes the OPTIONS() 
keyword.  You will want to read about OPTIONS(*OMIT and/or *NOPASS).  
If you are intending to use *OMIT with constant or value parameters, 
you will also want to read about the CEE test argument api CEETSTA,  
For parameters passed by reference, you can use %ADDR(parm) = 
*NULL instead of the CEETSTA api.

The best way to understand how to do this may be to look at an 
example.  If you are interested I could point you to some examples on 
Midrange Computing's and/or News/400's websites that contain 
examples that show the use of all of these techniques.

David Morris

>>> "Vishal Gupta" <vishgupta@hotmail.com> 07/24/99 05:47AM >>>
Hi,

Can we pass variable number of parameters in RPG/400 OR ILE RPG.
If Yes , then HOW.

Thanks,
Vishal.


* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
* This is the RPG/400 Discussion Mailing List!  To submit a new         *
* message, send your mail to "RPG400-L@midrange.com".  To unsubscribe   *
* from this list send email to MAJORDOMO@midrange.com and specify       *
* 'unsubscribe RPG400-L' in the body of your message.  Questions should *
* be directed to the list owner / operator: david@midrange.com          *
* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *


This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 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].