I am doing practice assignment as part of my BASE SAS certification prep, to see when a data step ends. Below is the code:
data first;
input x;
datalines;
1
2
9
;
run;
data second;
input x;
datalines;
3
4
5
6
;
run;
data third;
set first;
output;
set second;
output;
run;
Output is: 1 3 2 4 5 9
But when I have only 2 values 1 and 2 in the first dataset, output is 1 2 3 4 and not 1 3 2 4 . Why is it so?