On Mar 6, 2011, at 09:34 , array chip wrote:
> 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.
Nope... Presumably, your mailer encoded them as non-text and the mailing list
software scrubbed them.
Try inlining them. Not much we can do without an error message to go on.
(I gather, by the way, that even SAS itself has trouble reading SAS files these
days due to 32/64 bit issues. So my first question would be whether SAS can read
both files.)
> 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
>
>
>
> ______________________________________________
> R-help at 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.
--
Peter Dalgaard
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Email: pd.mes at cbs.dk Priv: PDalgd at gmail.com