In the given code you have 3 outputs right then it will give you 3 observations if you have 10 output statements then it will give you 10 observations. firs toutput iteration: x,y have values and z is missing you given output statement so it will print values for x,y and z for missing. secondoutput iteration:z have value 50 so it will print z with 50 and you already ave x,y values so in second iteration it will print 10,20 as x,y values third output iteration: x,y,z contain values but you again assigned with 100 x value over write and y,z values as follows. data new; x=10; y=20; output; z=50; output ; x=100 ; output ; run;
... View more