SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating a Single Observation from Multiple Records
Reading Multiple Records in Sequential Order
 


Question: Add instructions to read the values in the second record as one variable named Address. Then add a line pointer control to move the input pointer to the next record. Do not close the INPUT statement with a semicolon.

1---+----10---+----20
LEE ATHNOS  
1215 RAINTREE CIRCLE 
PHOENIX  AZ 85044  
HEIDIE BAKER  
1751 DIEHL ROAD  
VIENNA  VA 22124  
MYRON BARKER 
131 DONERAIL DRIVE 
ATLANTA  GA 30363 
JOYCE BENEFIT 
85 MAPLE AVENUE 
MENLO PARK  CA 94025 

 
     data perm.members;
        infile memdata;
        input Fname $ Lname $ /
        


           

  back||next

 

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

Terms of Use & Legal Information | Privacy Statement