変数の並び(並び順、順番)を整える。
formatステートメントを使います。
元のデータ
proc print data = sashelp.class; run;

並べ替える
data class_change; format name age sex weight height; set sashelp.class; run;
setステートメントより前にformatステートメントを記述する必要があります。

変数の並び(並び順、順番)を整える。
formatステートメントを使います。
proc print data = sashelp.class; run;
data class_change; format name age sex weight height; set sashelp.class; run;
setステートメントより前にformatステートメントを記述する必要があります。
コメント