Hello,
I'm trying to convert SAS datasets into Stata (without losing value labels or formats..) by going through the Xport files route.
Hopefully somebody has dealt with this before.
I have a dataset in SAS with formatted values (otherwise called labelled values in Stata).
I export that to an XPT file . Stata reads the file without the formatted values with the command
fdause "c:\file_location\file.xpt"
In order to make Stata importing the formats the following 2 steps are necessary:
1)Output the SAS format catalogue to a dataset
2)Export that dataset in XPF format to formats.xps
That way Stata while importing the XPT file containing the actual data looks for the XPF file and imports the label values from it
My problem is that I get the following error message in stata while doing that:
R:\Technical\SAS\SAS_to_STATA\formats.xpf is not a valid value label file
r(610);
Anybody has encountered this issue??
Thank you