Yen Lee <b88207001 <at> ntu.edu.tw> writes:

> I apologize if my sentence is not fluent to read.
> 
> I am doing a simulation study and I need to execute SAS and 
> read a SAS code in R. 
> I try the following code but it doesn't work.
> system('"c:\\program files\\SAS\\SAS 9.1\\sas.exe" "c:\\syntax.sas"') 
> can anyone give me some help with this? 

  You need to tell us, as precisely as possible,
what "doesn't work" means.
  Did R produce warnings or error messages?  What were they?
  If you run the equivalent command (the same except for
single vs double backslashes and surrounding quotation marks)

"c:\program files\SAS\SAS 9.1\sas.exe" "c:\syntax.sas"

  outside of R (in a terminal window or from the "Run" box
in Windows), does it work?

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to