SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading Hierarchical Files
Creating One Observation per Detail Record


Processing a DATA Step That Creates One Observation per Detail Record

Let's take a look at how this DATA step is processed.

     data perm.people (drop=type); 
        infile census;
        retain Address;
        input type $1. @;
        if type='H' then input @3 Address $15.;
        if type='P';
        input @3 Name $10. @13 Age 3. @15 Gender $1.;
      run;

Select buttons below to view a series of graphics that depict the processing of a DATA step that creates one observation per detail record.




back||next


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

Terms of Use & Legal Information | Privacy Statement