Looks like the log file is not appropriately attached. Here it is again. Thanks for any suggestions.
John ----- Original Message ---- From: array chip <arrayprof...@yahoo.com> To: r-help@r-project.org Sent: Mon, August 2, 2010 2:18:32 PM Subject: [R] read SAS dataset using read.ssd() Hi, I am using read.ssd() from foreign package to read some SAS datasets. I have 2 types of SAS datasets, one with "sas7bdat" extension, the other with "ssd01" extension. I have no problem with the first dataset type, but got the following error message with the 2nd dataset type (with "ssd01" extension): test<-read.ssd("C:/Documents and Settings/Desktop","test",sascmd="C:/Program Files/SAS/SASFoundation/9.2/sas.exe") SAS failed. SAS program at C:\DOCUME~1\LOCALS~1\Temp\Rtmp08209e\file65b5504.sas The log file will be file65b5504.log in the current directory Warning message: In read.ssd("C:/Documents and Settings/Desktop", "test", sascmd = "C:/Program Files/SAS/SASFoundation/9.2/sas.exe") : SAS return code was 2 Attached please find the log file. Thanks for any suggestions. John
1 The SAS System 14:10 Monday, August 2, 2010 NOTE: Unable to open SASUSER.REGSTRY. WORK.REGSTRY will be opened instead. NOTE: All registry changes will be lost at the end of the session. WARNING: Unable to copy SASUSER registry to WORK registry. Because of this, you will not see registry customizations during this session. NOTE: Unable to open SASUSER.PROFILE. WORK.PROFILE will be opened instead. NOTE: All profile changes will be lost at the end of the session. NOTE: Copyright (c) 2002-2008 by SAS Institute Inc., Cary, NC, USA. NOTE: This session is executing on the XP_PRO platform. NOTE: SAS initialization used: real time 0.98 seconds cpu time 0.35 seconds 1 option validvarname = v6;libname src2rd 'C:/Documents and Settings/Desktop'; NOTE: Libref SRC2RD was successfully assigned as follows: Engine: V9 Physical Name: C:\Documents and Settings\Desktop 2 libname rd xport 'C:\DOCUME~1\LOCALS~1\Temp\Rtmp08209e\file25af6ba1'; NOTE: Libref RD was successfully assigned as follows: Engine: XPORT Physical Name: C:\DOCUME~1\LOCALS~1\Temp\Rtmp08209e\file25af6ba1 3 proc copy in=src2rd out=rd; 4 select test ; ERROR: The file SRC2RD.TEST (memtype=ALL) was not found, but appears on a SELECT statement. WARNING: Input library SRC2RD is empty. NOTE: Statements not processed because of errors noted above. NOTE: The SAS System stopped processing this step because of errors. NOTE: PROCEDURE COPY used (Total process time): real time 0.06 seconds cpu time 0.04 seconds ERROR: Errors printed on page 1. NOTE: SAS Institute Inc., SAS Campus Drive, Cary, NC USA 27513-2414 NOTE: The SAS System used: real time 1.06 seconds cpu time 0.40 seconds
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.