Repository navigation
Replies: 2 comments 2 replies
|
Probably it is because the maximum length of a variable label in an XPT file is 40 characters: full = oriinfo.column_names_to_labels.get("MHTERM") Basically, your variable labels are too long |
0 replies
|
SAS does apparently the same when converting this sas7bdat to XPT, so the behaviour looks correct to me, here an excerpt from the SAS log
|
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi there,
I got inconsistent variable labels when reading SAS sas7bdat and xpt file. Please see the sample code and corresponding result below for details.
Sample code:
Result:

It seems the label of variable MHTERM generated by read_xport has been truncated. Anybody could hep me with this? Thanks!
ads.zip
All reactions