4460 2

[问答] 报错:Some character data was lost [推广有奖]

  • 0关注
  • 0粉丝

硕士生

48%

还不是VIP/贵宾

-

威望
0
论坛币
432 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
481 点
帖子
77
精华
0
在线时间
66 小时
注册时间
2017-2-23
最后登录
2022-1-27

楼主
和T娘漫游宇宙 发表于 2017-6-16 11:12:12 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
在set data的时候出现了这样的报错,请问如何解决?
ERROR: Some character data was lost during transcoding in the data set       libref.datasetname. Either the data contains characters that are not       representable in the new encoding or truncation occurred during transcoding.网上找了资料   http://support.sas.com/kb/52/716.html说

In order to confirm the mismatch, use the following code for further debugging where libref.dataset name is the name of the problematic data set:

/* Show the configuration file and the encoding setting for the SAS session */proc options option=config; run;proc options group=languagecontrol; run; /* Show the encoding value for the problematic data set */%let dsn=libref.datasetname;%let dsid=%sysfunc(open(&dsn,i));%put &dsn ENCODING is: %sysfunc(attrc(&dsid,encoding));还是不是很明白。

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:Character Lost Data Some WAS character

沙发
孤单的我们 发表于 2017-6-16 14:21:04
set data(encoding=any)

藤椅
dieguyouren 发表于 2018-3-20 20:49:49
你好,请问楼主解决了吗?

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注cda
拉您进交流群
GMT+8, 2026-1-5 11:19