When passing or receiving data from a program or procedure written in another language, it is important to know whether the other language supports the same parameter passing methods and the same data types as ILE RPG. Table 37 shows the different parameter passing methods allowed by ILE RPG and, where applicable, how they would be coded in the other the ILE languages. The table also includes the OPM RPG/400® compiler for comparison.
Passing By Reference | |
ILE RPG – prototype |
|
ILE C |
|
ILE COBOL |
|
RPG – non-prototyped |
|
ILE CL |
|
Passing By Value | |
ILE RPG – prototype |
|
ILE C |
|
ILE COBOL |
|
RPG – non-prototyped | N/A |
ILE CL |
N/A |
Passing By Read-Only Reference | |
ILE RPG – prototype |
|
ILE C |
|
ILE COBOL | N/A1 |
RPG – non-prototyped | N/A |
ILE CL |
N/A |
Notes:
|
For information on the data types supported by different HLLs, consult the appropriate language manual.