SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 1078|回复: 3
打印 上一主题 下一主题

有没有好心人给出详细的解释?

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2007-6-28 18:11:27 | 只看该作者

有没有好心人给出详细的解释?

有没有好心人给出详细的解释? lrecl=x该如何用?如何用SAS算出后面那个数字?为什么我用不用这个命令有时候结果都一样呢?小女子谢了先!
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
沙发
 楼主| 发表于 2007-7-3 17:29:07 | 只看该作者

Re: 有没有好心人给出详细的解释?

I also want to know.
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
板凳
 楼主| 发表于 2007-7-3 19:02:32 | 只看该作者

Re: 有没有好心人给出详细的解释?

你的程序?

[quote:4a5f3]LRECL=value
specifies the logical record length (that is, the number of bytes in a record). [/quote:4a5f3]
回复 支持 反对

使用道具 举报

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
地板
 楼主| 发表于 2007-7-11 11:14:59 | 只看该作者

Re: 有没有好心人给出详细的解释?

To mie7140:

LRCL also called Logical Record Length. It specifies how long a string of a line is in a acsii file. SAS will force to read that lenght before it goes to the second line. By default, SAS will use 256 characters as the value for LRCL. For example, if you have a file with LRCL=1024 characters and your code did not say LRCL=1024, SAS will read till 256 characters and the jump to the second line. You will lose all your data after that.

The same scenario will apply to the acsii file output in data setp. Please let me know if that helps. As long as your character string is not greater than the SAS default, you will have no problem. Otherwise, you need to make sure SAS know's how long the string is.
回复 支持 反对

使用道具 举报

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

本版积分规则

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

GMT+8, 2026-2-4 07:08 , Processed in 0.088959 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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