Re: [R] SAS data

From: Daniel Nordlund <>
Date: Sun, 16 Mar 2008 01:46:11 -0700

> -----Original Message-----
> From: [] On Behalf
> Of Samuel Okoye
> Sent: Friday, March 14, 2008 8:21 AM
> To:
> Subject: [R] SAS data
> Hello,
> I am trying to read the SAS file MyData.sa7bdat in R! This file is saved under
> D:\data! I therefore wrote
> > path <-"D:/SasData"
> > sashome <- "C/Progra, Files/SAS Institute/9_1/SAS"
> > sascmd <- file.path(sashome, "sas.exe")
> > MyData <- read.ssd(path, "MyData", sascmd=sascmd)
> The results what I get:
> SAS failed. SAS program at C:\DOCUME~1\Temp\RtmpcTlKtb\
> The log file will be file4eb43288.log in the current directory
> Warning message:
> SAS return code was 2 in: read.ssd(path, "MyData", sascmd = sascmd)
> Thank you in advance!
> Sam


If you actually tried to run the code as listed above, it is not surprising that it didn't work. You wrote that the data was in D:/Data, but specified the libname reference as D:/SasData. You specified the path to SAS as "C/Progra, Files/SAS Institute/9_1/SAS". I can't believe that that is a valid path to SAS on any system. I you write back to the list with actual code, location of data and sas.exe, and operating system (presumably MS Windows, but what version?), someone should be able to help.


Daniel Nordlund
Bothell, WA USA mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Sun 16 Mar 2008 - 08:53:02 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 16 Mar 2008 - 10:30:21 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive