sas7bdat icon indicating copy to clipboard operation
sas7bdat copied to clipboard

Cannot Read Big Endian Files

Open billdenney opened this issue 9 years ago • 2 comments

I have a file that I received which is a big-endian sas7bdat file. When I try to read it with read.sas7bdat, I get this error:

Error in read.sas7bdat(file.path(datadir, "myfile.sas7bdat")) : 
  big endian files are not supported

Is there any plan to support reading big endian files?

billdenney avatar Sep 08 '16 10:09 billdenney

It is possible, but not yet implemented. Have you tried sas7bdat.parso or the haven packages for R?

On Thu, Sep 8, 2016 at 5:32 AM, Bill Denney [email protected] wrote:

I have a file that I received which is a big-endian sas7bdat file. When I try to read it with read.sas7bdat, I get this error:

Error in read.sas7bdat(file.path(datadir, "myfile.sas7bdat")) : big endian files are not supported

Is there any plan to support reading big endian files?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/BioStatMatt/sas7bdat/issues/9, or mute the thread https://github.com/notifications/unsubscribe-auth/AAqMugfrhAw1KNkGLjgfXwAxZ6Xoqgfqks5qn-QvgaJpZM4J32EC .

BioStatMatt avatar Sep 09 '16 14:09 BioStatMatt

After trying this, I found that both sas7bdat.parso and the development version of haven (not the version on CRAN right now) can open my files.

Maybe a helper to other users could be to make error messages in read.sas7bdat point the user to those other packages?

billdenney avatar Sep 09 '16 15:09 billdenney