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

Feature Request: add arg to allow user choose nchar (type = 'bytes') #189

Closed
siye6 opened this issue Nov 17, 2023 · 1 comment · Fixed by #194
Closed

Feature Request: add arg to allow user choose nchar (type = 'bytes') #189

siye6 opened this issue Nov 17, 2023 · 1 comment · Fixed by #194
Assignees
Labels
enhancement New feature or request programming

Comments

@siye6
Copy link

siye6 commented Nov 17, 2023

Feature Idea

as per SAS help doc, the XPT v5 only allow Character variables can have lengths up to 200 bytes and Variable labels can be up to 40 characters, if there is a special character in variables / label, the actual length of bytes and characters could be different when encoding is utf8. (e.g. generate XPT files with variable length > 200 and label length > 40).

the default nchar used here, so not able to count the length of bytes.

if (nchar(label) > 40) {

Relevant Input

No response

Relevant Output

No response

Reproducible Example/Pseudo Code

No response

@siye6 siye6 added enhancement New feature or request programming labels Nov 17, 2023
@siye6
Copy link
Author

siye6 commented Nov 18, 2023

add an example in #91

@kaz462 kaz462 linked a pull request Nov 28, 2023 that will close this issue
14 tasks
@bms63 bms63 mentioned this issue Nov 29, 2023
14 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request programming
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants