SAS中文论坛

标题: 有没有好心人给出详细的解释? [打印本页]

作者: shiyiming    时间: 2007-6-28 18:11
标题: 有没有好心人给出详细的解释?
有没有好心人给出详细的解释? lrecl=x该如何用?如何用SAS算出后面那个数字?为什么我用不用这个命令有时候结果都一样呢?小女子谢了先!
作者: shiyiming    时间: 2007-7-3 17:29
标题: Re: 有没有好心人给出详细的解释?
I also want to know.
作者: shiyiming    时间: 2007-7-3 19:02
标题: Re: 有没有好心人给出详细的解释?
你的程序?

[quote:4a5f3]LRECL=value
specifies the logical record length (that is, the number of bytes in a record). [/quote:4a5f3]
作者: shiyiming    时间: 2007-7-11 11:14
标题: 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.




欢迎光临 SAS中文论坛 (https://mysas.net/forum/) Powered by Discuz! X3.2