SAS技术应用-以流的方式读取、写入文件
来源:互联网 发布:人工智能的挑战与机遇 编辑:程序博客网 时间:2024/06/07 18:56
length rec $256 crc $1 rc 8;
init:
submit continue;
filename h url "http://localhost/draft1.xls" recfm=f;
data crlibm.report_xls(compress=yes);
infile h;
input rec $char256.;
rpt_id=1;rownum=_n_;
run;
endsubmit;
/*如果crlibm置于spde引擎之下,由于多线程读取的原因,不能保证rownum顺序获得*/
submit continue;
proc sql;
create view v1 as
select * from crlibm.report_xls
where rpt_id=1
order by rownum;
endsubmit;
crc=appsrv_header('Content-type','application/vnd.ms-excel');
crc=appsrv_header('Content-disposition','attachment;filename=t.xls');
/*IT下,由于data step中无法设定_webout的文件属性,导致xls流不能正确输出*/
fid=fopen('_webout','A',0,'B');
dsid=open('v1');
do while(fetch(dsid)^=-1);
rec=getvarc(dsid,1);
rc=fput(fid,put(rec,$char256.));
rc=fwrite(fid);
end;
dsid=close(dsid);
fid=fclose(fid);
return;
- SAS技术应用-以流的方式读取、写入文件
- android以流的方式读取文件
- Android 如何以流的方式读取图片文件
- Android 以流的方式读取服务器图片文件
- 浏览器以二进制流方式读取文件
- 文件读写——以字符方式读取与写入文件
- 以追加方式写入文件的几种方法
- java读取文件和写入文件的方式
- 将图片文件以流的方式写入到jsp页面
- 将图片文件以流的方式写入到jsp页面
- 读取文件,解密,加密,写入文件,存储过程的应用
- 文件的读取写入
- c#文件读取和写入的方式总结
- xml文件读取和写入的实现方式小结
- c#文件读取和写入的方式总结
- c#文件读取和写入的方式总结
- DOM方式的XML文件读取和写入
- 将整型以二进制方式写入文件
- 在onsubmit事件中阻止表单的提交(vbs)
- 二战经典老歌(The Mass)+图文欣赏
- Sas9 spde VS threads测试
- 网卡MAC地址相关信息大全
- 将阿拉伯数字日期转换为中文数字日期格式(ASP)
- SAS技术应用-以流的方式读取、写入文件
- 如何在Windows 2000下修改MAC地址
- Java新手入门需要掌握的30个基本概念(转载)
- Mac地址全了解
- Bill Gates写的QBASIC程序(1981)
- 特殊用途的IP地址介绍
- 一个股民在2004年的发言
- 大学是什么?
- 一个白痴的考研路