SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Reading Variable-Length Records
Reading Records with a Varying Number of Fields


Question: Write an INPUT statement that reads a block of values for Date and BP, and then holds the record so another block of data can be read.
  
     data perm.health;
        infile bpdata length=reclen;
        input ID 4. @;
        do index=6 to reclen by 15;
            

           

  back||next

 

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

Terms of Use & Legal Information | Privacy Statement