Skip to content

haven::read_sas() unable to allocate memory for <16MB SAS page sizes #705

@DanChaltiel

Description

@DanChaltiel

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugan unexpected problem or unintended behaviorreadstat

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions