In reply to Jerry Voight.

Thank you, Jerry. Good point, enabling XCMD option is a must for executing Operating System commands from a SAS session (using any of the following: X statement, SYSTEM function, CALL SYSTEM routine, SYSTASK statement, PIPE option in a FILENAME statement, %SYSEXEC command).