flyfeifei1984 发表于 2010-3-20 20:42 
请教大虾:put s+2;
这里的+2指针控制的具体含义是什么?谢谢!!!
Put statement(not put function) writes things to log or text file.
+2 move aditional 2 position to right-side. See example below with and without +2.
83 data _null_;
84 do x = 1 to 10;
85 y=x;
86 put x +2 @;
87 end;
88 run;
1 2 3 4 5 6 7 8 9 10
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.01 seconds
89
90 data _null_;
91 do x = 1 to 10;
92 y=x;
93 put x @;
94 end;
95 run;
1 2 3 4 5 6 7 8 9 10
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds