my question is not how to fix the issue. I am just trying to understand the output of a program which is using modified list input for reading data. Compare the 2 problems. Both of these are using modified list input. data survey; (Ques1 - Ques5) ( : $1.); datalines; 12345 ; Output of this program was - Ques1: 1 Ques2: 2 Ques3: 3 Ques4: 4 Ques5: 5 To understand this answer, I thought even though it is using list input, it wont read until it finds the delimiter/end-of-record. Because informat is 1., pointer will stop at '2' after reading first value. Similarly, the values of rest of the variables are generated. Based on that, I guessed that the output of the following program would be TYPE: DAISY and COLOR: YELLOW DATA TEST1; INFILE DATALINES TRUNCOVER; INPUT TYPE : $5. COLOR : $11.; DATALINES; DAISYYELLOW ; Thanks again for your replies.
... View more