SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

Creating Multiple Observations from a Single Record
Reading the Same Number of Repeating Fields


Question: Write an iterative DO statement that creates a variable named Quarter whose values range from 1 to 4, incremented by one.
      data perm.sales97; 
         infile data97;  
         input ID $4. @;
         

           

  back||next

 

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

Terms of Use & Legal Information | Privacy Statement