Hi, Below 2 data steps are for processing same data. Though, the data is same, the output is different. The significance of "+1" is to ignore 1 space so that the succeeding data will be considered for next variable/column. Even though, the data should not differ in output of Program 2 from that of Program 1 , I find difference in the output. Could you please explain why is it so? Program 1: data work.voter; input Age Party : $1. (Ques1-Ques4) ($1. +1); datalines; 23 D 1 1 2 2 45 R 5 5 4 1 67 D 2 4 3 3 39 R 4 4 4 4 19 D 2 1 2 1 75 D 3 3 2 3 57 R 4 3 4 4 ; run; Program 2: data voter2; input Age Party : $1. (Ques1-Ques4) ($1.); datalines; 23 D 1 1 2 2 45 R 5 5 4 1 67 D 2 4 3 3 39 R 4 4 4 4 19 D 2 1 2 1 75 D 3 3 2 3 57 R 4 3 4 4 ; run;
... View more