Issues an operating environment command from within a SAS session.
Valid: |
anywhere
|
UNIX specifics: |
valid operating system command
|
See: |
X Statement in
SAS Language Reference: Dictionary
|
X <'operating system command'>;
|
-
operating system command
-
specifies the UNIX command. If you specify
only one UNIX command, you do not need to enclose it in quotation marks.
Also, if you are running SAS from the Korn shell, you cannot use aliases.
The X statement issues a UNIX command
from within a SAS session. SAS executes the X statement immediately.
Neither the X statement nor the %SYSEXEC macro program
statement is intended for use during the execution of a DATA step. The CALL
SYSTEM routine, however, can be executed within a DATA step. See CALL SYSTEM Routine: UNIX for an example.
Note: The X statement is
not supported without arguments under the
X Window
System. ![[cautionend]](../../../../common/61991/HTML/default/images/cautend.gif)
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.