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 |
Beta Was this translation helpful? Give feedback.
-
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
|
Beta Was this translation helpful? Give feedback.
-
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
Beta Was this translation helpful? Give feedback.
All reactions