x
executes an operating system command. It requires the option xcmd
to be set. %let cmd=ls /tmp; x &cmd; %put &cmd returned &sysrc; /* ls /tmp returned 0 */ %let cmd=ls /non/existing/directory; x &cmd; %put &cmd returned &sysrc; /* ls /non/existing/directory returned 2 */
x
statement cannot (easily) be captured and is not written to the log file.