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:
Ksharp_0-1629205498686.png
Please suggest on this
Please show us the full log report.
@Ksharp wrote:
Ksharp_0-1629205498686.png
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
CFC_SAS_Communities_400x225.jpg
It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.
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.