SAS OnlineTutor HomeFAQ PageSuggested Learning PathsContents+Searchback||next

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


Question: Add the statement that writes the current observation to the data set after each new value for Sales is read.
      data perm.sales97; 
         infile data97; 
         input ID $4. @; 
         do Quarter=1 to 4;
            input Sales : comma. @; 
            

           

  back||next

 

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

Terms of Use & Legal Information | Privacy Statement