Sign in

docs ILE Concepts

Passing Arguments on a Dynamic Program Call

Passing Arguments on a Dynamic Program Call

Passing Arguments on a Dynamic Program Call

Calls to ILE or OPM programs (in contrast to calls to ILE procedures) pass arguments by reference, meaning that the called program receives the address of each argument.

When using a dynamic program call, you need to know the method of argument passing that is expected by the called program and how to simulate it if necessary. A maximum of 255 arguments are allowed on a dynamic program call. Each ILE language may further restrict the maximum number of arguments. Some ILE languages support the built-in function CALLPGMV, which allows a maximum of 16383 arguments. Information on how to use the different passing methods is contained in the ILE HLL programmer’s guides.