Skip to content

catalog_file ignored in read_sas() when file created on Unix system #696

@maike2011

Description

@maike2011

Having to work with SAS files created a unix system (SAS 9.4), we observed the following using read_sas() with a catalog_file (haven 2.5.1, R 4.2.1):

The catalog file (sas7bcat) seems to be ignored (no message, no error) if created on Unix, while read_sas() works as expected for catalog files created on windows, irrespective of the system that the corresponding data file was created on.

The attached zip contains a reproducible example with recreations of haven's example sas data sets hadley.sas7bdat and formats.sas7bcat in different variations: both were recreated twice using either

  • Windows: WINDOWS_64 or
  • Unix: HP_UX_64, RS_6000_AIX_64, SOLARIS_64, HP_IA64

All data sets have wlatin1 encoding.

Both data files can be read with the Windows catalog file with formats being applied as expected, but no formats are available when using the Unix catalog file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions