You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 formatlib=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.
The text was updated successfully, but these errors were encountered:
Hi @gorcha, unfortunately, all my sas7bdat files are proprietary and cannot be shared online.
However, I tested with a few and this happened each so you might want to give it a try with the first dummy file you find.
If you cannot reproduce the error, I will try to find a file that does not contain any sensitive information but I'm not sure it even exists.
Maintains iconv hack from c1f9f19 and solaris hack from 4a878a1.
* Fix various SAS catalog file reading bugs (fix#529, fix#653, fix#680, fix#696, fix#705).
* Increase maximum SAS page file size to 16MB (fix#697).
* Ignore invalid SAV timestamp strings (fix#683).
* Fix compiler warnings (fix#707).
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 withhaven
: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:I'm not sure whether this relates to ReadStats so I posted it here, sorry if this was not the thing to do.
The text was updated successfully, but these errors were encountered: