Hi,
I am trying to call a sas program (test.sas) in R, the directory for
test.sas is testfolder.
It will work very well in the sas9.2 platform with the following command
system(paste('"C://Program
Files/SAS/SASFoundation/9.2(32-bit)/sas.exe"',
'C:/testfolder/test.sas'), wait = TRUE)
However, when the sas was upgraded to sas9.3, I tried the following similar
command but it does not work.
system(paste('"C:/Program
Files/SASHome/SASFoundation/9.3/sas.exe"',
'C:/testfolder/test.sas'), wait = TRUE)
The prompt in the R is that "always executing" (a circle indicating R
is
executing),
if i change the later part of 'C:/testfolder/test.sas' to
'xxxxxx'
system(paste('"C:/Program
Files/SASHome/SASFoundation/9.3/sas.exe"',
'xxxxxx'), wait = TRUE)
The prompt in the R is still that "always executing"(a circle
indicating R
is executing),
But I can use system('"C:/Program
Files/SASHome/SASFoundation/9.3/sas.exe"') to start SAS9.3.
The problem seems that in the command system(paste('"C:/Program
Files/SASHome/SASFoundation/9.3/sas.exe"',
'C:/testfolder/test.sas'),
wait = TRUE) , after SAS9.3 is initiated, the target file test.sas can not
be found.
It might also be that some configuration will be needed in the SAS9.3 to
make it compatible to be called in R.
Could you give me some advice? Thank you very much !
Best
Patrick
[[alternative HTML version deleted]]