Hi All,
I have a XPt file where iam trying to convert them into sas datasets by using below code but it throwing an error in SAS log. Could you please provide your thoughts on this.
libname in xport "C:Desktop\SAS1\data.xpt";
proc copy inlib=in outlib=work;
run;
proc cimport library=work infile="C:Desktop\SAS1\data.xpt";
run;
SAS LOG ERROR:
ERROR: The transport file was created in the encoding utf-8. This session encoding, wlatin1, can read and create transport files
in the encoding, wlatin1. Data not imported.
Thanks,
Mounika
The message is pretty clear. You might have unicode characters in the data sets, which your current SAS session cannot read because it uses encoding wlatin1.
SAS your SAS session with encoding UTF-8 to read these tables. Either:
Please suggest on this
Please show us the full log report.
@Ksharp wrote:
Some lucky souls still have SAS on their desktop rather than the dreadful EG? So jealous!
Thanks Chrisnz and Ksharp for your time to answer my question .
Issue got resolved with autocall macro called
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.