Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Using SAS/IML Software to Generate IML Statements

Calling the Operating System

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:
   x 'listc'; resume;

Chapter Contents
Chapter Contents
Previous
Previous
Next
Next
Top
Top

Copyright © 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.