Chapter Contents

Previous

Next
X

X



Issues an operating system command from within a SAS session

Valid: anywhere
UNIX specifics: valid operating system command


Syntax
Details
See Also

Syntax

X <'host-command'>;

host-command
specifies the UNIX command. If you specify only one UNIX command, you do not need to enclose it in quotes. Also, if you are running the SAS System from the Korn shell, you cannot use aliases.


Details

The X statement issues a UNIX command from within a SAS session. The SAS System 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 for an example.

Note:   The X statement is not supported without arguments under the X Window System.  [cautionend]

See Also


Chapter Contents

Previous

Next

Top of Page

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