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);
Secure your spot at the must-attend AI and analytics event of 2024: SAS Innovate 2024! Get ready for a jam-packed agenda featuring workshops, super demos, breakout sessions, roundtables, inspiring keynotes and incredible networking events.
Register by March 1 to snag the Early Bird rate of just $695! Don't miss out on this exclusive offer.