BookmarkSubscribeRSS Feed
crc7rb1031
Calcite | Level 5

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.

1 REPLY 1
Shmuel
Garnet | Level 18

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.

 

 

CFC_SAS_Communities_400x225.jpgCFC_SAS_Communities_400x225.jpg

Call for content now open!

It's your turn to help shape SAS Innovate 2027. Share your expertise and inspire the SAS community.

Submit your proposal →

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 1308 views
  • 0 likes
  • 2 in conversation