%SYSEXEC<command>;
no argument
puts you into operating environment mode under most operating environments, where you can issue operating environment commands and return to your SAS session.
command
is any operating environment command. If command contains a semicolon, use a macro quoting function.
Example 1: Executing Operating Environment-Specific Utility Programs
In this macro, ACLIB, the %SYSEXEC statement executes one of two operating environment utility programs based on the value of the automatic macro variable SYSSCP. If the value of SYSSCP is anything other than OS or VMS , ACLIB writes a message in the SAS log indicating that no utilities are available.