SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading Hierarchical Files
Creating One Observation per Header Record


Question:

Now the value of type equals H and _N_ is greater than 1. What happens next?
     if type ='H' then do;
        if _n_ > 1 then output;
        Total=0;

Program Data Vector
All the values in the program data vector are written to the data set as the first observation.
Only the values for Address and Total are written to the data set as the first observation.
Total is initialized to zero.


  back||next

 

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

Terms of Use & Legal Information | Privacy Statement