SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Debugging and Testing DATA Steps
Understanding DATA Step Processing


At the beginning of the second iteration, the value of _N_ is set to 2 and the value of _ERROR_ is reset to 0. Remember, the automatic variable _N_ keeps track of the number of times the DATA step has begun to execute.


First iteration is complete.

As the SET statement executes, the values from the second observation are written to the program data vector.


2nd SET statement executes.

The assignment statement executes again to compute the value for Interest for the second observation.


2nd Assignment statement executes.


back||next


Copyright © 2002 SAS Institute Inc., Cary, NC, USA. All rights reserved.

Terms of Use & Legal Information | Privacy Statement