変数の並び(並び順、順番)を整える。
formatステートメントを使います。
元のデータ
proc print data = sashelp.class; run;
![](https://ymddttm.com/wp-content/uploads/2019/05/2019-05-27_01.png)
並べ替える
data class_change; format name age sex weight height; set sashelp.class; run;
setステートメントより前にformatステートメントを記述する必要があります。
![](https://ymddttm.com/wp-content/uploads/2019/05/2019-05-27_02.png)
変数の並び(並び順、順番)を整える。
formatステートメントを使います。
proc print data = sashelp.class; run;
data class_change; format name age sex weight height; set sashelp.class; run;
setステートメントより前にformatステートメントを記述する必要があります。
コメント