selik / xport

Python reader and writer for SAS XPORT data transport files.
MIT License
49 stars 24 forks source link

Limitation of 8 characters #96

Closed DCasoPTS closed 1 year ago

DCasoPTS commented 1 year ago

I have datasets with variables names longer than 8 and I'd like to be able to produce XPT files for them with this software.

selik commented 1 year ago

SAS Transport v5 restricts variable names to 8 characters and labels to 40 characters. If you want to use v8, simply swap import xport.v89 for import xport.v56 and it should work fine. Note that some organizations that ask for XPT files will only accept v5.