Debugging and Testing DATA Steps |
Understanding DATA Step
Processing |
At the end of the first iteration of the DATA step, three default actions occur. First, the values in the program data vector are written to the new data set as the first observation. |
Second, control returns to the top of the DATA step. Third,
SAS retains the values of variables that were read from a SAS data set with
the SET statement, or that were created by a sum statement. All other variable
values, such as the variable Interest , are set to missing. |
When SAS reads raw data, the situation is different. In that case, SAS
sets the value of each variable in the DATA step to missing at the beginning
of each iteration, with these exceptions:
|
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.