taoyuanjl 发表于 2017-5-12 14:50 
这是清华大学出版社《SAS编程技术教程 第2版》(朱世武 主编)P135中例5.23。
这不是陷阱,书中有这个例子,应该有讲解informat的用法吧? 要不这本书愧对书本身的名字。
如下是官方文档的解释:
d
specifies an optional decimal scaling factor in the numeric informats. SAS divides
the input data by 10 to the power of d.
通俗讲,就是sas对输入的data除以10的d次方。 你给的例子中informat为3.1, 也就是对输入数据除10.