My company recently converted to SAS and did not buy the SAS SHARE license so I cannot ODBC into the server. I am not a SAS user, but I am writing a program that needs to query data from the server and I want to have my R script call a .sas program to retrieve the data. I think this is possible using
df <- system("sas -SYSIN path/to/sas/script.sas")
but I can't seem to make it work. I have spent all a few hours on the Googles and decided to ask here.
error message:
running command 'sas -SYSIN C:/Desktop/test.sas' had status 127
Thanks!
system(). Can you run this command in a shell/command window and see if you get more information? There may be arguments tosystem()(maybeintern?) that will output more diagnostic/debugging info. (Maybe status 127 is actually OK, and you're just not getting the output you think ...)system()and I didn't get much out of it. I will try running it in the shell window and see what results I get.