Skip to content

Incorrect v8 xpt files #756

@DirkDeWachter

Description

@DirkDeWachter

BUG.
In version 8 xpt files, the record count is missing in the OBSV8 header. As a result SAS 9.4 opens the xpt-file and creates the dataset with all the variables but does not read any records.

Source file
haven/src/readstat/sas/readstat_xport_write.c line 458
Function
xport_write_obs_header_record

Solution:
The function should use xport_write_header_record_v8 in the return statement in stead of plain xport_write_header_record

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