Editor's note (10/9/23): This blog post provides additional context and help.
This message often comes from incompatible encoding between your SAS dataset and the SAS encoding.
Use Proc CONTENTS on your input dataset to see the encoding used and see how it compares to your current SAS encoding.
To display the SAS encoding use:
proc options option=encoding define;
run;
To be able to read the data anyway, you can use the following code:
data newdata;
set olddata(encoding=any);
run;
Please be aware, that the chars that could not be converted will leave you with some strange text.
If you know the encoding of the SAS datasets you can use the KPROPDATA function to convert it like so:
data newdata;
set olddata(encoding=any);
str = KPROPDATA(v1, "UESC", "UTF-8");
run;
... View more