0

I wrote one module in proc iml and trying to call it using call fuctiong and supplied parameters.

But its throwing the erorr: run executed for function module.

Any suggestion?

munish bansal
  • 67
  • 3
  • 11

1 Answers1

1

The error message says that you have defined a function that returns a value ('function module') so you need to call it like this: x = MyFunction(x,y,z);

You cannot use the CALL statement to call a function, only to call subroutines that do not return values.

Rick
  • 1,210
  • 6
  • 11