[R] Import SAS dataset error

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Wed Sep 11 16:09:30 CEST 2002


"Yang, Richard" <dyang at nrcan.gc.ca> writes:

> Dear all;
> 
> 	Using read.ssd, I tried to import a SAS dataset  from a network
> drive; an error occurred:
> 
> > stemattr <- read.ssd("g:/olmn2/dyang/siteprod/datasasv8", "stemattr")
> SAS failed.  SAS program at C:\DOCUME~1\dyang\LOCALS~1\Temp\file7785.sas 
> a log and other error products should be in the vicinity
> Warning messages: 
> 1: sas not found 
> 2: ls not found 
> 3: SAS return code was -1 in: read.ssd("g:/olmn2/dyang/siteprod/datasasv8",
> "stemattr") 
> 
> 	The sas dataset was created in Unix. I was able to see the target
> file in the path using list.files(libname). I was puzzled by the warning
> "sas not found".  In fact,  a SAS Ver. 8 is installed in the same directory
> where I installed R 1.51. on Win2K. 
> 
> 	What did I miss? Any help?

1) You'd need to figure out how to call sas as a command with a
   program argument in win2k. It's not going to be "sas file.sas", but
   I have heard rumors that it can be done.

2) The use of an "ls" command inside read.ssd suggests that it was
   never intended to be used outside of Unix.

3) SAS on Windows cannot read files from SAS on Unix anyway. (I kid
   you not!)

Basically, you need to write an export library and then you might as
well use read.xport.


-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list