Look at using the CALL SYSTEM function from a DATA step -- you generate your OS command syntax. Recommend reviewing the particulars in the OS-specific SAS "companion" guide available on the SAS support
http://support.sas.com/ website, where you will find SAS-hosted DOC but also supplemental technical and conference reference material, available using the website SEARCH or an Internet search engine.
Scott Barry
SBBWorks, Inc.
Suggested Google advanced search arguments, this topic / post:
call system site:sas.com
execute os commands site:sas.com