Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

ENCODING=Dataset Option

Let me explain the reason writing this post…. My coworker was having problem reading in a Sas Dataset that he got from the Sponsor. It was a SAS dataset encoded with UTF-8 and other coding related stuff. When he tried to get in the rawdata using Libname statement libname rawdata  ‘/sas/SAS913/SASDATA/CLIENT /ABC123/raw’; data datasetname; set rawdata.datasetname;run; When he runs the SAS code above, SAS stops at the current block, and returns an error that looks like this: ERROR: Some character data was lost during transcoding in the dataset RAWDATA.DATSETNAME. NOTE: The data step has been abnormally terminated. NOTE: The SAS System stopped processing this step because of errors. NOTE: SAS set option OBS=0 and will continue to check statements. This may cause NOTE: No observations in data set. NOTE: There were 20314 observations read from the data set RAWDATA.DATSETNAME. WARNING: The data set WORK.DATASETNAME may be incomplete.  When this step was stopped...

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]



This post first appeared on StudySAS, please read the originial post: here

Share the post

ENCODING=Dataset Option

×

Subscribe to Studysas

Get updates delivered right to your inbox!

Thank you for your subscription

×