I've never seen this error code and note when I am trying to sort to merge datasets or creating new datasets, not sure what it means. I have tried multiple ways of importing the dataset (csv, xlsx, and
sas7bdat).
ERROR: Some character data was lost during transcoding in the dataset FETALSEX.SUPER. Either the data contains characters that are not representable in the new encoding or truncation occurred during transcoding.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: There were 4829 observations read from the data set FETALSEX.SUPER.
WARNING: The data set FETALSEX.SUPER may be incomplete. When this step was stopped there were 0 observations and 27 variables.
WARNING: Data set FETALSEX.SUPER was not replaced because this step was stopped.
Pay attention to the message:
"Either the data contains characters that are not representable in the new encoding or truncation occurred during transcoding."
Run next code and check your encoding option printed in the log:
proc options option=encoding; run;
it seems that the imported data contains characters that are presented by 2 bytes or more
and the encoding option in your sas does not support it.
add to FILENAME statement (or INFILE statement) the option encoding=UTF8;
If you have more questions about please post your importing data code and your sas system encoding.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.