Macro Statements
The following macro statement
has behavior specific to Windows:
%SYSEXEC
The command argument
can be any operating environment command or any sequence of macro
operations that generates an operating environment command. You can
also use the command argument
to invoke a Windows application such as Notepad.
Omitting the
command argument launches a
command prompt subprocess, which is interactive. To return to your SAS session, type EXIT at the
command prompt and press Enter. The SYSRC automatic variable is set to 0 if you omit
the
command argument
in the %SYSEXEC statement.
Here is a simple example
of %SYSEXEC: %sysexec time;
This statement launches a command prompt session that displays the following lines:
The
current time is: 16:32:45.16 Enter new time:
Copyright © SAS Institute Inc. All Rights Reserved.