就喜欢马 发表于 2015-5-23 14:02 
SAS自带的变量first.变量和last.变量使用前提是data步中有by语句。而data步中用by语句的变量必须要在data步 ...
the data sets that are listed in the SET statement must be sorted by the values of the BY variable(s), or they must have an appropriate index.BASE书中的原文,也就是要用BY variable语句的话前提是之前对该variable进行了SORT步骤,或者在该VARIABLE本身就是一个索引。所以我做题时AB都想选

过两天要去考了,,实在想求一个正确的答案呀。