Hi, I was reading e-mail about one doubt that you were when you read files .sas7bdat in R. Now, I am with the same problem. But I don?t know how can i do that. I have download de Sas Viewer and i am using this sintax in r:> read.ssd("X:\\users\\Anresc07","que0411.sas7bdat")SAS failed. SAS program at C:\DOCUME~1\leandro\CONFIG~1\Temp\RtmpXR1Tid\file3d6c4ae1.sas The log file will be file3d6c4ae1.log in the current directory NULL Warning messages: 1: In system(paste(sascmd, tmpProg)) : "sas" n?o encontrado 2: In read.ssd("X:\\users\\Anresc07", "que0411.sas7bdat") : SAS return code was -1>Do you know what i can do to solve that? Thanks a lot! Best regards, Atenciosamente, Leandro Lins Marino Centro de Avalia??o Funda??o CESGRANRIO Rua Santa Alexandrina, 1011 - 2? andar Rio de Janeiro, RJ - CEP: 20261-903 ( (21) 2103-9600 R.:236 ( (21) 8777-7907 * leandro em cesgranrio.org.br "Aquele que suporta o peso da sociedade ? precisamente aquele que obt?m as menores vantagens". (SMITH, Adam) P Antes de imprimir pense em sua responsabilidade e compromisso com o MEIO AMBIENTE
You need to specify the path to SAS, not Sas viewer. From the help page: sascmd: character string giving full path to SAS executable. I don't think you have done that. On Thu, 26 Jun 2008, Leandro Marino wrote:> Hi, > > I was reading e-mail about one doubt that you were when you read files > .sas7bdat in R. > > Now, I am with the same problem. But I don?t know how can i do that. I have > download de Sas Viewer and i am using this sintax in r: >> read.ssd("X:\\users\\Anresc07","que0411.sas7bdat") > SAS failed. SAS program at > C:\DOCUME~1\leandro\CONFIG~1\Temp\RtmpXR1Tid\file3d6c4ae1.sas > The log file will be file3d6c4ae1.log in the current directory > NULL > Warning messages: > 1: In system(paste(sascmd, tmpProg)) : "sas" n?o encontrado > 2: In read.ssd("X:\\users\\Anresc07", "que0411.sas7bdat") : > SAS return code was -1 >> > Do you know what i can do to solve that? > Thanks a lot! > Best regards, > > > > > > > > > Atenciosamente, > Leandro Lins Marino > Centro de Avalia??o > Funda??o CESGRANRIO > Rua Santa Alexandrina, 1011 - 2? andar > Rio de Janeiro, RJ - CEP: 20261-903 > ( (21) 2103-9600 R.:236 > ( (21) 8777-7907 > * leandro at cesgranrio.org.br > "Aquele que suporta o peso da sociedade > ? precisamente aquele que obt?m > as menores vantagens". (SMITH, Adam) > > P Antes de imprimir pense em sua responsabilidade e compromisso com o MEIO > AMBIENTE > > ______________________________________________ > R-help at 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. >-- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595
> -----Original Message----- > From: r-help-bounces at r-project.org > [mailto:r-help-bounces at r-project.org] On Behalf Of Leandro Marino > Sent: Thursday, June 26, 2008 12:50 PM > To: r-help at r-project.org > Subject: [R] Read sas7bdat > > Hi, > > I was reading e-mail about one doubt that you were when you read files > .sas7bdat in R. > > Now, I am with the same problem. But I don?t know how can i > do that. I have > download de Sas Viewer and i am using this sintax in r: > > read.ssd("X:\\users\\Anresc07","que0411.sas7bdat") > SAS failed. SAS program at > C:\DOCUME~1\leandro\CONFIG~1\Temp\RtmpXR1Tid\file3d6c4ae1.sas > The log file will be file3d6c4ae1.log in the current directory > NULL > Warning messages: > 1: In system(paste(sascmd, tmpProg)) : "sas" n?o encontrado > 2: In read.ssd("X:\\users\\Anresc07", "que0411.sas7bdat") : > SAS return code was -1 > > > Do you know what i can do to solve that? > Thanks a lot! > Best regards, > >Do you have SAS available to run on your computer (the SAS viewer is not sufficient for using read.ssd)? If you do, is it in your default path? You should leave off the .sas7bdat extension when you specify the SAS data set name. Make sure you carefully read the help (?read.ssd). Hope this is helpful, Dan Daniel J. Nordlund Washington State Department of Social and Health Services Planning, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204