In reply to Francisco Vázquez.

SAS/IML modules use matrix computations and functions that are not available in other SAS procedures, so you can't call an IML module from MCMC or the DATA step. For MCMC, you can define function in PROC FCMP, as shown in the MCMC documentation.