全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
10210 15
2013-12-06
悬赏 1000 个论坛币 已解决
各位高手

proc export data=sashelp.class outfile="D:\class.xls";
sheet="班级-成绩@";
run;


导出的excel sheet名字中,短杆和@都被转换成了下划线,怎么保证特殊字符不被转换成下划线
比如我这里的-和@

急,谢谢各位

最佳答案

zhengbo8 查看完整内容

用DDE间接实现的,要是不弹出Excel窗口就更好。 注:运行环境为 Office2003 + SAS 9.1.3 求币。
二维码

扫码加我 拉你入群

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

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

全部回复
2013-12-6 14:11:35
用DDE间接实现的,要是不弹出Excel窗口就更好。

复制代码

注:运行环境为 Office2003 + SAS 9.1.3

求币。

二维码

扫码加我 拉你入群

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

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

2013-12-6 15:19:38
SAS 官网上有相似的问题可以参考
http://support.sas.com/kb/33/255.html

Problem Note 33255: Dashes mistranslated to underscores when using the IMPORT and EXPORT procedures in sheetnames
   

Dash characters are mistranslated to underscores when using the SHEET= option with the IMPORT and EXPORT procedure. In this example:

proc export data = sashelp.class
dbms = excel
file = "j:\mydata\testout.xls"
replace;
sheet = 'AE-MHX';
run;
The sheet created in EXCEL is named AE_MHX instead of AE-MHX.

The IMPORT procedure works in a similar way. In this example the IMPORT procedure will attempt to import a sheet with a dash character.

proc import file = "j:\mydata\testout.xls"
dbms = excel
out = test
replace;
sheet = 'AE-MHX';
run;
However the IMPORT procedure will actually look for AE_MHX as the sheetname.

To circumvent the problem, avoid dashes in your sheetname when creating the Excel file and rename the dash character to an underscore character when importing the file.


二维码

扫码加我 拉你入群

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

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

2013-12-6 16:09:56
slimdell 发表于 2013-12-6 15:19
SAS 官网上有相似的问题可以参考
http://support.sas.com/kb/33/255.html
但是他没有回答问题啊,只是提出了问题
二维码

扫码加我 拉你入群

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

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

2013-12-6 16:33:01
此题无解。
二维码

扫码加我 拉你入群

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

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

2013-12-6 16:57:02
嗯,回去试试。
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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