Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect v8 xpt files #756

Open
DirkDeWachter opened this issue May 30, 2024 · 0 comments
Open

Incorrect v8 xpt files #756

DirkDeWachter opened this issue May 30, 2024 · 0 comments
Labels
bug an unexpected problem or unintended behavior readstat

Comments

@DirkDeWachter
Copy link

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

@gorcha gorcha added bug an unexpected problem or unintended behavior readstat labels May 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior readstat
Projects
None yet
Development

No branches or pull requests

2 participants