SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading Hierarchical Files
Creating One Observation per Detail Record


Question: Write a subsetting IF statement that checks for the condition that type is equal to P.
     data perm.people;
        infile census;
        retain Address;
        input type $1. @;
        if type='H' then input @3 Address $15.;
        

           

  back||next

 

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

Terms of Use & Legal Information | Privacy Statement