I am trying to run a batch file through the SAS session after it has run a SAS program. Using x command, this could be run. But what particular x command will run the bat say if I am having the batch file on a network drive “p:\sas\mybatch.bat”. I tried
X call “p:\sas\mybatch.bat”; or call system(‘cd p:\sas\mybatch.bat’), but no luck. I guess I am missing something. Could you please help me to identify my mistake.
data _null_;
command ='cd' ||'c:sas\copy_datasets.bat';
call system (command);
run;