2009-05-26

SASのdescendingが破綻してる件

/* なんとなく思いついたので試してみたら破綻してたよ */
data aaa ;
    do descending=1 to 2 ;
      do a=1 to 2 ;
        output ;
      end ;
    end ;
run ;
proc print ;
run ;
proc sort ;
 by descending a ;
run ;
proc print ;
run ;
proc sort ;
 by descending descending a ;
run ;
proc print ;
run ;
proc sort ;
 by descending descending descending a ;
run ;
proc print ;
run ;
/* そもそもこんなコード書くなって意見は勿論正しい */

記事への反応(ブックマークコメント)

ログイン ユーザー登録
ようこそ ゲスト さん