I have two questions:
1. How is it possible to define macro variables inside implus language? Why ¯o_var_name is not referenced in implus language if %let is put inside submit/endsubmit statements?
2. Is it possible to include a proc of SAS STAT inside a module?For example I need to insert proc corr inside a module for defining objective function of a genetic algorithm.
(1) IMLPlus does not support SAS macro variables except inside submit blocks. However, you can use the Base SAS functions symgetn and symgetc. For example:
submit;
%let xyz = 123;
endsubmit;
x = symgetn( "xyz" );
print x;
(2) Yes, you can call any SAS procedure (except PROC IML) from inside a submit block that is itself inside an IML module.
Register Today!
Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9.
Early bird rate extended! Save $200 when you sign up by March 31.