Using SAS/IML Software to Generate IML Statements |
Suppose that you want to construct and execute an operating system command. Just push it to the token stream in the form of an X statement and have it executed under a pause interrupt.
The following module executes any system command given as an argument:
start system(command); call push(" x '",command,"'; resume;"); pause; finish; run system('listc');The call generates and executes a LISTC command under MVS as follows:
x 'listc'; resume;
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.