Reading Hierarchical Files |
Creating One Observation per Header Record |
DO Group Actions for Header Records
When the condition data perm.residnts; infile census; retain Address; input type $1. @; if type='H' then do;
data perm.residnts; infile census; retain Address; input type $1. @; if type='H' then do; if _n_ > 1
data perm.residnts; infile census; retain Address; input type $1. @; if type='H' then do; if _n_ > 1 then output; data perm.residnts; infile census; retain Address; input type $1. @; if type='H' then do; if _n_ > 1 then output; Total=0;
data perm.residnts; infile census; retain Address; input type $1. @; if type='H' then do; if _n_ > 1 then output; Total=0; input Address $ 3-17;
data perm.residnts; infile census; retain Address; input type $1. @; if type='H' then do; if _n_ > 1 then output; Total=0; input Address $ 3-17; end; |
Copyright © 2002 SAS Institute Inc.,
Cary, NC, USA. All rights reserved.