Chapter Contents |
Previous |
Next |
SYSTEM |
Category: | Command |
Syntax | |
Details | |
Example |
Syntax |
rc=SYSTEM(cval); |
Type: Numeric
' '
).
Type: Character
Details |
Using SYSTEM is equivalent to using the X command for issuing a system command. The action that takes place depends on which command you specify. The window may be temporarily overwritten due to the actions of the command. The commands that can be issued are operating-system dependent.
Example |
Issue the DIR command to the host operating system:
rc=system('dir'); if (rc) then _msg_= 'Failed to execute the DIR command.';
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.