sas.fget(base.name, var.file=paste(base.name,".1",sep=""), data.file=paste(base.name,".2",sep=""), id=<<see below>>, data.frame.out=T)
If data.frame.out is FALSE, the output will be a list of vectors, each containing a variable from the SAS dataset. If id was specified, that element of the list will be used as the id attribute of the entire list.
Before using sas.fget you must copy the SAS macro stored in $SHOME/cmd/sas_get to the computer running SAS. If you are not familiar with running SAS macros, refer to the SAS documentation. Add three lines to the end of the copied macro: one line defines libnames for libraries containing data, one line defines the formats used in the data, and the third line calls the sas.get macro. For example, if your SAS object foo is stored in library SAS.data, formats are in the library SAS.formats, and you call your temporary files (to be read by sas.fget) file.1 and file.2, then the three lines to add are:
libname temp 'SAS.data'; libname library 'SAS.formats'; %sas_get(temp.foo, file.1, file.2, dates=sas, vars=, ifs=);
Once you have created the two files, copy them to the machine running S-PLUS. These are binary files, so be sure to copy them with a utility that leaves all the bits intact.
Finally, in S-PLUS, execute x <- sas.fget("file") to read the SAS data stored in the variable description file file.1 and the data file file.2.
SAS Institute Inc. (1988). SASO Technical Report P-176, Using the SASO System, Release 6.03, under UNIXO O perating Systems and Derivatives. SAS Institute Inc., Cary, North Carolina.
SAS Institute Inc. (1985). SASO Introductory Guide. Third Edition. SAS Institute Inc., Cary, North Carolina.
The Getting Data Into and Out of S-PLUS chapter of the S-PLUS User's Manual.