Unable to read SAS data

Hi All,

I am able to generate a SAS dataset using R. However when I try to read those SAS dataset generated using R via SAS it is not recognizing. Any help around this will be of much help.



It'd also help to know:

  • What version of SAS are you using?
  • What error message is printed in SAS when trying to read the data?

Hi Saravana,
Are you using the haven package function write_sas() to produce your files? I notice that the write_sas() documentation says, "write_sas() is currently experimental and only works for limited datasets", so it may not be much help in your case.
I am not a SAS user but I see that it can import CSV files - would using that file format solve your R-to-SAS transfer problem?


1 Like
