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.

Thanks
Saravana

We don't really have enough info to help you out. Could you ask this with a minimal REPRoducible EXample (reprex)? A reprex makes it much easier for others to understand your issue and figure out how to 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?

HTH

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.