全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
16153 11
2015-03-25
问题:
导入外部文件不成功,SAS提供以下错误说明:
"
An error occured executing the workspace job ''program'. Integration  technologies failed to submit the code.[error] Failed to
transcode data from U_UTF8_CE to U_WLATIN1_CE encoding because it contained characters which are not supported by your SAS session encoding. Please review your encoding= and locale= SAS system options to ensure that they can accommodate the data that you want to process. A portion of the source string, in hex representation is:
[None] 5c88184:3b 2a 27 3b 2a 22 3b 2a 2f 3b 71 75 69 74 3b 72 |;*';*";*/;quit;r|
[None]5c88194: 75 62 3b 0d 0a 4f 50 54 49 4f 4e 53 20 50 41 47 |un;..OPTIONSPAG|
[Error] Some code points did not transcode.
"
原文请看下面。
SAS error message
我觉得问题可能在两个方面:1。外部数据包含SAS系统不识别的文字 2。外部数据产生的系统与SAS所在系统不匹配。
我的系统是windows,SAS是英文版EG, 察看proc options group=languagecontrol; run; Log 如下:
GOPTIONS ACCESSIBLE;
15 proc options group=languagecontrol; run;
SAS (r) Proprietary Software Release 9.3 TS1M0
 
Group=LANGUAGECONTROL
DATESTYLE=MDY Identify sequence of month, day and year when ANYDATE informat data is ambiguous
DFLANG=ENGLISH Language for EURDF date/time formats and informats
NOLOCALELANGCHG Do not change the language of SAS message text in ODS output when the LOCALE
option is specified
PAPERSIZE=LETTER Size of paper to print on
RSASIOTRANSERROR Display a transcoding error when illegal data values for a remote application
TRANTAB=(lat1lat1,lat1lat1,wlt1_ucs,wlt1_lcs,wlt1_ccl,,,)
Names of translate tables
URLENCODING=SESSION
Specifies URL percent encoding for the URLENCODE and URLDECODE functions
NODBCS Do not process double byte character sets
DBCSLANG=NONE Specifies the double-byte character set (DBCS) language to use
DBCSTYPE=NONE Specifies a double-byte character set (DBCS) encoding method
ENCODING=WLATIN1 Specifies default encoding for internal processing of data
LOCALE=EN_US Specifies the current locale for the SAS session
NONLSCOMPATMODE Uses the user specified encoding to process character data

我尝试的解决方法:
1。LOCALE=EN_US=== 修改为zh_CN;不行。
2。修改encoding, 用如下语句
filenamett 'H:\data1.txt' encoding='wlatin1' ;
encoding 的取值试过:ANYASCIIANY EBCDICANY Utf-8 ms-950 ms-936 ms-932 ms-949
还是一样的结果。
请问该怎么尝试?
谢谢。






二维码

扫码加我 拉你入群

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

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

全部回复
2015-3-27 05:19:31
顶一顶
二维码

扫码加我 拉你入群

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

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

2015-4-2 21:38:28
encoding= any ;
二维码

扫码加我 拉你入群

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

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

2015-12-14 02:03:28
你先确认
......\Program Files\SASHome\SASFoundation\9.4\nls  有没有 U8 文件夹。

然后,......\Program Files\SASHome\SASFoundation\9.4\sasv9.cfg  

将这个文件中的配置,改为

-config "C:\Program Files\SASHome\SASFoundation\9.4\nls\u8\sasv9.cfg"

这样你再重试一下。
二维码

扫码加我 拉你入群

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

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

2016-4-3 22:16:21
condor_gz 发表于 2015-12-14 02:03
你先确认
......\Program Files\SASHome\SASFoundation\9.4\nls  有没有 U8 文件夹。
正解啊!
二维码

扫码加我 拉你入群

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

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

2016-6-17 10:15:27
x124837592 发表于 2016-4-3 22:16
正解啊!
我的文件夹有u8,但是我还是报错,关键是我的脚本一会儿能跑,一会就报跟你一样的错误,简直了无语了。。。
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群