小琪是豆豆猪 发表于 2015-9-17 00:13 
谢谢谢谢,出来了,但是新出来呢数据集和以前不一样 一个是行的顺序变了 一个是以前行间的空行没有了
1, 如果要在output中输出空行记录, 在proc report语句加上missing选项;
2, When PROC REPORT creates groups, it orders the detail rows by the ascending, formatted values of the group variable. You can change the default order with ORDER= and DESCENDING in the DEFINE statement or with the DEFINITION window.
所以如果需要output和dataset是exactly一致的话,需要在定义group的同时加上order=data;即
define GroupA / group order=data;