全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
1343 0
2015-02-15
写了一个小程序,出现问题,在发送扩展名是xls的就出错,扩展名是csv的就成功,是不是sas系统中没设置好?

%macro mailit;
filename ref email
encoding=gb2312;
data _null_;
file ref
        to=("xxxx@xxx.com")
        attach=("d:\AA.xls")
        subject="统计";
        run;
filename ref clear;
%mend mailit;
%mailit;

报错信息:
NOTE: File REF 是:
      E-Mail Access Device

ERROR:  Read Access Violation In Task [ DATASTEP )
Exception occurred at (62D2189F)
Task Traceback
Address   Frame     (DBGHELP API Version 4.0 rev 5)
62D2189F  0564F358  sasvmail:hxenative_ui+0xB3E3
62D1BA91  0564FDE0  sasvmail:hxenative_ui+0x55D5
62D13BF4  0564FE04  sasvmail:mcn_main+0x2BF4
62D11F01  0564FE30  sasvmail:mcn_main+0xF01
679827FC  0564FE4C  sasxkern:mcn_main+0x417FC
672F1DCA  0564FE7C  sasdsa:mcn_main+0xDCA
6722E363  0564FEC0  sasdsx:mcn_main+0xD363
67221802  0564FEF8  sasdsx:mcn_main+0x802
67221782  0564FF14  sasdsx:mcn_main+0x782
673115C2  0564FF5C  sasds:mcn_main+0x5C2
025D2B02  0564FF74  sashost:Main+0xBE72
025D6C20  0564FF88  sashost:Main+0xFF90
76CFED5C  0564FF94  kernel32:BaseThreadInitThunk+0x12
76DF377B  0564FFD4  ntdll:RtlInitializeExceptionChain+0xEF
76DF374E  0564FFEC  ntdll:RtlInitializeExceptionChain+0xC2

NOTE: SAS 系统由于错误而停止了该步的处理。
NOTE: “DATA 语句”所用时间(总处理时间):
      实际时间         1.02 秒
      CPU 时间         0.07 秒



二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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