Skip to content

sas.get() exit

5 messages · Nordlund, Dan (DSHS/RDA), Nirav Mehta

#
Hello,

I am trying to import SAS files into R using sas.get() in Hmisc. I am
running both SAS and R on a UNIX server. I've pasted my command and
ensuing errors below:

sas.get(lib="EOG", mem="eog3pub00_1")
Error in if (status != 0) { : argument is of length zero
In addition: Warning message:
In sas.get(lib = "EOG", mem = "eog3pub00_1") :
  EOG/formats.sc? or formats.sas7bcat  not found. Formatting ignored.

I have SAS installed, and am in the directory which contains EOG,
which in turn contains "eog3pub00_1", the full name of which is
eog3pub00_1.sas7bdat.

R.Version() returns:
$platform
[1] "i686-pc-linux-gnu"
...
$version.string
[1] "R version 2.8.1 (2008-12-22)"

I was not able to find similar error messages anywhere online.

Thanks for your help!
Nirav
#
Nirav,

Unfortunately, sas.get from Hmisc is broken (i.e. does not work) on Windows.  There is a fix for the problem.  There have been many posts about this in the archive.  See

http://tolstoy.newcastle.edu.au/R/e2/help/07/04/14217.html

If you need additional help, email back to the list, and I will try to find a previous email I have sent out about this problem and its solution.

Hope this is helpful,

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA  98504-5204
#
Hi, I'm actually running Linux - is Hmisc broken for that as well? I
saw the previous discussion, but had assumed it was only for Windows
machines.

On Tue, Apr 21, 2009 at 7:04 PM, Nordlund, Dan (DSHS/RDA)
<NordlDJ at dshs.wa.gov> wrote:
#
I obviously should have read your post more carefully.  :-)  I don't think there was a problem on Linux.  I will have to re-read your post with Linux in mind.  I don't know if I will be able to help as I only use Linux occasionally, but I will look.

Dan

Daniel J. Nordlund
Washington State Department of Social and Health Services
Planning, Performance, and Accountability
Research and Data Analysis Division
Olympia, WA  98504-5204
#
Someone pointed out that Hmisc, version 3.4-4 works just great with
R-2.8.1 on Linux. I downgraded the package version from 5 and it now
works wonderfully.

Thanks for looking, and your help!

On Tue, Apr 21, 2009 at 7:04 PM, Nordlund, Dan (DSHS/RDA)
<NordlDJ at dshs.wa.gov> wrote: