Thanks for the responses.
Here is the command I used and the error message I got.

> system("c:\\program files\\sas institute\\v8\\sas.exe test")
Warning message: 
c:\program not found

if I change "program files" to "progra~1" then the output is:
> system("c:\\progra~1\\sas institute\\v8\\sas.exe test")
Warning message: 
c:\progra~1\sas not found

I don't know how to change the folder name "sas institute" to let R reads
it. Can someone help me with this?

The strange thing is that if I type in the command 
"c:\\progra~1\\sas institute\\v8\\sas.exe test" in dos environment, it
didn't work, either.

I will appreciate very much if someone can help a bit. Thanks.

David



-----Original Message-----
From: Don MacQueen [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 24, 2005 11:38 AM
To: Shin, David; r-help@stat.math.ethz.ch; [EMAIL PROTECTED]
Subject: Re: [R] Call SAS from R

How does it not work? Do you get error messages? Nothing at all?
(it's difficult to help without more specific information, so this is 
a good time to suggest reading the posting guide: 
http://www.R-project.org/posting-guide.html)

What happens if you try to run that exact command outside of R? Does it
work?

-Don

At 10:22 AM -0500 8/24/05, Shin, David wrote:
>Hi All,
>
>I am new to post question on this list. I apologize if this question is too
>easy or irrelevant.
>
>I am doing a simulation study and I need to read a data file that can be
>easily read by SAS.
>So, what I try to do is to execute SAS in R and then read the output of SAS
>to R.
>
>I try the following code but it didn't work.
>system("c:\\program files\\sas institute\\v8\\sas.exe test")
>
>can anyone give me some help with this?
>Thanks.
>
>Davoid
>
>
>***************************************************************************
*
>This email may contain confidential material.
>If you were not an intended recipient,
>Please notify the sender and delete all copies.
>We may monitor email to and from our network.
>***************************************************************************
*
>
>       [[alternative HTML version deleted]]
>
>______________________________________________
>R-help@stat.math.ethz.ch mailing list
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html


-- 
--------------------------------------
Don MacQueen
Environmental Protection Department
Lawrence Livermore National Laboratory
Livermore, CA, USA
--------------------------------------

**************************************************************************** 
This email may contain confidential material.\ If you were n...{{dropped}}

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to