Parameter Passing Styles
Program calls, including system API calls, require that parameters be passed
by reference. However, there is no such requirement for procedure calls. ILE RPG allows
three methods for passing and receiving prototyped parameters:
- By reference
- By value
- By read-only reference
Parameters that are not prototyped may only be passed by reference.