Thomas, Your point is well taken. I spoke with the people at SAS again, and they said that a reason why I was having a problem with the SAS xpt file, is that my variable names are sometimes longer than 8 characters long.
PROC COPY puts a limit of 8 characters length to variable names. Does R have a limit to the length of variable names? Instead, I used PROC CPORT, which can handle variable names longer than 8 characters long, successfully. proc cport library=src2rd file=tranfile; select use; run; But now, when I try to use the R function 'read.xport', I get the following error message: read.xport("J:\\QM\\Reports\\Sarthur\\SAS_Application\\SAS_Data_Sets\\use") Error in lookup.xport(file) : unable to open file Thanks, Stephen --- Thomas Lumley <[EMAIL PROTECTED]> wrote: > On Fri, 20 Dec 2002, Stephen Arthur wrote: > > > Thanks > > > > > library(foreign) > > > > I did do that originally, I just mis-tpyed it, and > it > > did not work. > > > > I talked with people at SAS, and they said the > PROC > > COPY SAS code was good, but that I just need to > play > > around with the R parameters for read.ssd > > > > If the SAS code is good then just using it in SAS > seems like a useful > workaround. > > -thomas > ______________________________________________ [EMAIL PROTECTED] mailing list http://www.stat.math.ethz.ch/mailman/listinfo/r-help