NAT0936 compilation error calling a user-defined function

Hi

if you add “by value” to the input parameters, it should work (see examples http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat631win/pg/pg_udf.htm#recurs)

If you do not use “by value”, the call must match in format and length, as noted (http://techcommunity.softwareag.com/ecosystem/documentation/natural/nat631win/sm/definefu.htm):

Since the default format for literal numbers less than 32767 is I2, they do not match your prototype.

Thanks a lot for the prompt reply!

Yes, that is the explanation. I did not think of it - or maybe wasn’t even aware that this is so. :oops:
Thanks again,