SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

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

如何将xpt读入sas

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2006-7-16 21:40:32 | 只看该作者

如何将xpt读入sas

理论上应该是可以直接读入,因为sas可以识别,但为什么读入之后是乱码?
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2006-7-18 22:23:57 | 只看该作者

RE:

1. ensure that format of the input file is xpt created from SAS.
2. ensure that binary was used if the xpt file was FTP from another host.
3. sample code for reading XPT file to sas:
[code:0dc2f]
libname indt xport 'specified xpt file path and name';
proc copy in=indt out=work;
run;
[/code:0dc2f]
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-2-3 18:33 , Processed in 0.078078 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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