Skip to content

Fix SAS columns attributes for variable names starting with underscore - #414

Merged
evanmiller merged 1 commit into
WizardMac:devfrom
hpoettker:underscore-variables
Oct 20, 2026
Merged

evanmiller merged 1 commit into
WizardMac:devfrom
hpoettker:underscore-variables

Conversation

@hpoettker

Copy link
Copy Markdown
Contributor

SAS allows variable names starting with an underscore, and such variable names don't require special handling.

When I currently write a SAS data file with ReadStat that contains a variable name like _var1, SAS will not read the produced file and shows the following error message:

ERROR: The value_var1 is not a valid SAS name. lib.test cannot be opened.

With the proposed change, SAS reads the produced data file successfully.

@evanmiller
evanmiller merged commit 08236a7 into WizardMac:dev Oct 20, 2026
14 checks passed
@hpoettker
hpoettker deleted the underscore-variables branch October 20, 2026 17:11
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