04-22-2012 10:25 AM
In SAS/IML, I have two modules, defined as follows:
START module1 (n); PRINT n; FINISH module1;
START module2 (action, n); RUN action(n); FINISH module2;
I want to run module2 as follows:
SAS returns an error with this - it says that it cannot find the
action module. I want it to interpret this as I would expect
R to interpret this, like so:
Is it possible in SAS/IML, or is this a limitation of the software?
04-22-2012 02:58 PM
In SAS/IML Studio, you can use the ALIAS statement to achieve this. I discuss how to do it on p. 117 of my book Statistical Programming with SAS/IML Software.
In PROC IML, use CALL EXECUTE and read the chapter "Using SAS/IML Software to Generate SAS/IML Statements."