SAS Component Language Dictionary |
Issues a host system command
-
rc
-
contains the host system return code
for the operation.
Type: Numeric
-
cval
-
is the host command to be executed.
To enter the host command processor for your system, specify a blank string
(' ').
Type: Character
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.
Issue the DIR command to the host operating
system:
rc=system('dir');
if (rc) then _msg_=
'Failed to execute the DIR command.';
Copyright © 2009 by SAS Institute Inc., Cary, NC, USA. All rights reserved.