Statements under UNIX |
Valid: | anywhere |
UNIX specifics: | valid operating system command |
See: | X Statement in SAS Language Reference: Dictionary |
Syntax | |
Details | |
See Also |
Syntax |
X <'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.
Details |
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.
See Also |
Copyright © 2010 by SAS Institute Inc., Cary, NC, USA. All rights reserved.