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.

 

 

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 357 views
  • 0 likes
  • 2 in conversation