Read the appropriate data line, assign a unique number to each respondent, and write an observation to RADIO. Each raw-data record contains two lines of information about each listener. The INPUT statement reads only the information that this example needs. The / line control skips the first line of information in each record. The rest of the INPUT statement reads Time1-Time7 from the beginning of the second line. These variables represent the listener's radio programming preference for each of seven time periods on weekdays. (See Completed Survey Form.) The listener=_N_ statement assigns a unique identifier to each listener. An observation is automatically written to RADIO at the end of each iteration.


   input /(Time1-Time7) ($1. +1);
   listener=_n_;
run;