Language Reference

EXECUTE Call

executes SAS statements immediately

CALL EXECUTE( operands);

where operands are character matrices or quoted literals containing valid SAS statements.

The EXECUTE subroutine pushes character arguments to the input command stream, executes them, and then returns to the calling module. You can specify up to 15 arguments. The subroutine should be called from a module rather than from the immediate environment (because it uses the resume mechanism that works only from modules). The strings you push do not appear in the log.

Following are examples of valid EXECUTE subroutines:

  
    call execute("x={1 2 3, 4 5 6};"); 
    call execute(" x 'ls';"); 
    call execute(" dm 'log; color source red';"); 
    call execute(concat(" title '",string,"';"));
 

For more details about the EXECUTE subroutine, see Chapter 15, "Using SAS/IML Software to Generate IML Statements."

Previous Page | Next Page | Top of Page