-
Notifications
You must be signed in to change notification settings - Fork 115
Closed
Labels
Description
The same problem as in #697 can also happen with <16MB catalogs if one of the formats is considered invalid.
It is a kind of a corner case but I guess it can provide some information.
For instance, I have to add the following format to my catalog so that my .sas7bdat
file is readable with SAS, but this unfortunately fails with haven
:
libname catout 'your/path';
Proc format lib=catout;
Value $ate ;
run;
This SAS code creates a formats.sasb7cat
catalog file (link) that weighs only 17ko.
Using read_sas(input, catalog)
with this catalog file will output the following error, regardless of the input .sas7bdat
file:
Failed to parse xxx.sas7bdat: Unable to allocate memory.
I'm not sure whether this relates to ReadStats so I posted it here, sorry if this was not the thing to do.