SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

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


Question:
Now direct the input pointer to the third record and read the values for City, State, and Zip respectively. (NOTE: The values for City contain eight characters or less and do not contain embedded blanks.) Do not close the INPUT statement with a semicolon.
1---+----10---+----20---
ALEX BEDWAN 
609 WILTON MEADOW DRIVE 
GARNER NC 27529 
XM034 FLOYD 

     data perm.patients;
        infile patdata;
        input #4 ID $5.
              #1 Fname $ Lname $
              #2 Address $23.
              

           

  back||next

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

Terms of Use & Legal Information | Privacy Statement