Closed inpowell closed 1 year ago
Hi @inpowell, thanks for the bug report.
There's a hard limit to SAS page size in ReadStat, the underlying C library, to avoid memory allocation issues with malformed SAS input (see WizardMac/ReadStat#249 for details).
I've opened an issue over at ReadStat to see if we can get the maximum size increased.
haven::read_sas
cannot read a SAS data file with page size 16 MiB (16777216 bytes). Some data files with sizes slightly under 16 MiB also fail to read.I would expect the attached sas7bdat files (which I have zipped to keep filesize under 10MB) to be read in by
haven::read_sas
and give a 10,000 row tibble with one columnempty
consisting only of empty strings.20221123 - haven bug report.zip
I generated these files in SAS using
Workaround: Set the default page size in SAS to 8MB with
-BUFSIZE 8M
or on a case-by-case basis. The default page size for my operating environment is 16M.