BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

I created a matrix (named SIM) in PROC IML, and needed use the elements in SIM to run CALL NLPNRA. I assumed that the the matrix would be recognized in the module created by START/FINISH. However, SAS always gave the error message indicating that SIM was a blank matrix. I thus tried READ, USE, ... in the module, they did not work. Is there a specific statment in START/FINISH to read the matrix into the module?
1 REPLY 1
Rick_SAS
SAS Super FREQ
Use a GLOBAL statement as part of the definition of the objective function module:
start my_func(x) global(sim);
/* access elements of sim as part of optimizing x */
finish;

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 921 views
  • 0 likes
  • 2 in conversation