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.

 

 

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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