The %SYSEXEC statement
causes the operating environment to immediately execute the command
that you specify and assigns any return code from the operating environment
to the automatic macro variable SYSRC. Use the %SYSEXEC statement
and the automatic macro variables SYSSCP and SYSSCPL to write portable
macros that run under multiple operating environments.
Operating Environment Information: The following items related to the use of the %SYSEXEC statement
are operating environment specific. For details, see the SAS documentation
for your operating environment.
-
the availability of the %SYSEXEC
statement in batch processing, noninteractive mode, or interactive
line mode.
-
the way you return from operating
environment mode to your SAS session after executing the %SYSEXEC
statement with no argument.
-
the commands to use with the %SYSEXEC
statement.
-
the return codes that you get in
the automatic macro variable SYSRC.