Skip to content

Conversation

@gorcha
Copy link
Contributor

@gorcha gorcha commented Nov 23, 2025

This PR updates writing for OBSV8 and LABELV8/9 headers in SAS XPORT files (see tidyverse/haven#784).

LABELV8/9 headers are only used when writing variable labels longer than 40 characters and includes the number of variables with long labels in the header, but this number is left aligned instead of right aligned.

The OBSV8 headers were working fine but I cleaned up the function a little while I was at it since the label and obs headers are now using their own functions for V8 files instead of sharing a header writing function due to the differing alignment.

Have tested with SAS and all looks to be working fine.

@gorcha gorcha changed the title Fix XPT writing for OBSV8 and LABELV8 headers Fix XPT writing for LABELV8/9 headers Nov 23, 2025
@evanmiller evanmiller merged commit f04c4e6 into WizardMac:dev Nov 23, 2025
9 of 12 checks passed
@evanmiller
Copy link
Contributor

Thanks!

@gorcha gorcha deleted the xpt-v8-labels branch November 23, 2025 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants