I guess mark's right. Your have to function would had to return a parameter list data type in order the INLIST could work, and there's not such a data type.
Instead your function can return a string, formated like a parameter list, this string can then be macrosubstituited as a parameter to the INLIST, and works, we implemented like that.
You'll have troubles if your string gets longer than 256 characters, I'd like to know how you solve this.
Marcelo D. Burgos
Martin Cubero S.A. de C.V.