INTERAL VARIABLE(內部變數)
_N_ : 的 PSEUDO code
1. create new file aa;
2. open d as input
3. suppose d 有 r 筆(row)
_N_=0;
4. for i=1 to r
5. _N_=i;
// your data step code begins from there , ex: x=_N_;
X=_N_;
6. end.
_N_ 代表現在要處理的 row number, 可以當成流水號
Data aa;
set d;
X=_N_;
run;
全站熱搜
留言列表