Statistical programming, matrix languages, and more

Getting error 'run executed for function module' while trying to call a module

Accepted Solution Solved
Reply
Regular Contributor
Posts: 187
Accepted Solution

Getting error 'run executed for function module' while trying to call a module

I have defined a matrix m, and printed it and defined a module 'bcent' in proc iml.

Now I am trying to call it using:

call bcent(m,1,0);

but its throwing the error 'run executed for function module.

Any suggestion?


Accepted Solutions
Solution
‎04-20-2014 07:19 AM
SAS Super FREQ
Posts: 3,232

Re: Getting error 'run executed for function module' while trying to call a module

It sounds like you defined BCENT to be a funtion that returns a value. The RUN and CALL statements are only for modules that do not return values. Call it as

x = bcent(m,1,0);

View solution in original post


All Replies
Solution
‎04-20-2014 07:19 AM
SAS Super FREQ
Posts: 3,232

Re: Getting error 'run executed for function module' while trying to call a module

It sounds like you defined BCENT to be a funtion that returns a value. The RUN and CALL statements are only for modules that do not return values. Call it as

x = bcent(m,1,0);

Post a Question
Discussion Stats
  • 1 reply
  • 377 views
  • 0 likes
  • 2 in conversation