[R] read.ssd() from foreign package

array chip arrayprofile at yahoo.com
Sun Mar 6 09:34:20 CET 2011


Hi, I am encountering a confusing problem when I tried to use read.ssd to read 
SAS datasets. For one SAS dataset "a.sas7bdat", it did not work; while for 
another SAS dataset "b.sas7bdat" it worked:

> tmp<-read.ssd("C:\\SASdata", "a",sascmd="C:/Program 
>Files/SAS/SASFoundation/9.2/sas.exe")
SAS failed.  SAS program at 
C:\DOCUME~1\yiz01\LOCALS~1\Temp\RtmpVjJa6m\file12384509.sas 

The log file will be file12384509.log in the current directory
Warning message:
In read.ssd("C:\\SASdata", "a", sascmd = "C:/Program 
Files/SAS/SASFoundation/9.2/sas.exe") :
  SAS return code was 1

> tmp<-read.ssd("C:\\SASdata", "b",sascmd="C:/Program 
>Files/SAS/SASFoundation/9.2/sas.exe")

The attached log files are also attached. File "file12384509.log" is for dataset 
"a.sas7bdat" that does not work; while file "file1ad46e5d.log" is for dataset 
"b.sas7bdat" that does work.

Can anyone suggest why one worked, the other did not?

Thanks

John



      


More information about the R-help mailing list