<p><font size="4" face="宋体"> The SAS data set WORK.CHECK has an index <br>
on the variable Code and the following SAS <br>
program is submitted. <br>
<br>
proc sort data=WORK.CHECK; <br>
by Code; <br>
run; <br>
<br>
Which describes the result of submitting <br>
the SAS program? </font></p>
<p><br>
<font size="4" face="宋体">A. The index on Code is deleted. <br>
<br>
B.The index on Code is updated. <br>
<br>
C.The index on Code is uneffected.<br>
<br>
D.The sort does not execute. </font></p>
<p><font size="4" face="宋体">答案为D.<br>
SORT过程是不能对已经建立索引INDEX的数据集进行SORT或者REPLACE,因为那样会破坏数据集的INDEX文件。<br>
当然如果非要排序,破坏INDEX文件,可以再后面加入一个参数 force。</font></p>
<p><font size="4" face="宋体">其实这里大家可以思考一个问题:sort和index的差别是什么? </font></p>
<p><font size="4" face="宋体">此问题可以参看文献</font></p>
<p><font size="4" face="宋体"><a href="http://www2.sas.com/proceedings/sugi26/p121-26.pdf"><!-- m --><a class="postlink" href="http://www2.sas.com/proceedings/sugi26/p121-26.pdf">http://www2.sas.com/proceedings/sugi26/p121-26.pdf</a><!-- m --></a> <br>
<br>
</font></p> <a href="http://hi.baidu.com/crack%5Fman/blog/item/c5fc72f0ee1b18c9f3d385b0.html">阅读全文</a>