Re: [R] Using pakage foreign and to import SAS file

From: Austin, Matt <maustin_at_amgen.com>
Date: Tue 15 Nov 2005 - 15:39:28 EST


If sas isn't in the path, then you might have trouble with sas.get or read.ssd.

Assuming you are using windows, go to the Start menu, select run and type "sas". If sas fires up it's in your path, if not then that is the reason.

--Matt

> -----Original Message-----
> From: r-help-bounces@stat.math.ethz.ch
> [mailto:r-help-bounces@stat.math.ethz.ch]On Behalf Of Rick Bilonick
> Sent: Monday, November 14, 2005 8:22 PM
> To: Walter R. Paczkowski
> Cc: r-help@stat.math.ethz.ch
> Subject: Re: [R] Using pakage foreign and to import SAS file
>
>
> On Mon, 2005-11-14 at 22:55 +0000, Walter R. Paczkowski wrote:
> > Hi,
> >
> > I'm struggling with foreign to import a SAS file. The
> file, for lack of imagination, is d.sas7bdat and is in my
> root directory (c:\) under Windows XP. When I type
> >
> > read.ssd("c:\\", "d")
> >
> > which I think I'm suppose to enter, I get
> >
> > SAS failed. SAS program at
> C:\DOCUME~1\Owner\LOCALS~1\Temp\Rtmp32758\file19621.sas
> > The log file will be file19621.log in the current directory
> > NULL
> > Warning messages:
> > 1: "sas" not found
> > 2: SAS return code was -1 in: read.ssd("c:\\", "d")
> >
> > I have SAS 9.1 running on my computer so SAS is there.
> What am I doing wrong?
> >
> > Thanks,
> >
> > Walt
> >
> >
> I've not used read.ssd but I've had good results with sas.get
> in Hmisc.
>
> Rick B.
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
>
https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Tue Nov 15 15:47:02 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:41:09 EST