Exporting SAS data to STATA file adds an extra byte to the character column length of the target STATA file


The EXPORT procedure to convert SAS data to STATA adds an extra byte to the length of the target STATA file when the column is a string:

The following code is an example:

filename stata "c:\temp\STATA_FILE.dta";

proc export data=a outfile=stata dbms=dta replace;

run;

Note that the extra byte is added for character variables only where the column length is an odd number.

There is no workaround for this issue.