SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 796|回复: 1
打印 上一主题 下一主题

SAS从ZIP文件中读取数据

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2006-3-31 15:36:17 | 只看该作者

SAS从ZIP文件中读取数据

[code:dd279]/* The syntax parameters for wzunzip are:             */
/*                                                    */
/*     specify the location of the downloaded add-on  */
/*     -o = overwrite existing file                   */
/*     -c = display contents of file to screen        */
/*     name of zip file                               */                        
/*     name of file inside of zip to be read          */

filename pipes pipe '"c:\program files\winzip\wzunzip.exe" -o -c c:\sas\data.zip data1.txt';

data test;
  infile pipes firstobs=9 truncover;
  input x y $;
  put x= y=;
run;[/code:dd279]
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2006-4-6 10:52:38 | 只看该作者

求助

如果原始的TXT文件内每行记录的长度很长,比如:5000列。
回复 支持 反对

使用道具 举报

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

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2025-6-9 22:05 , Processed in 0.068071 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表