sas是如何执行的呢?如果是先执行第一个set语句,然后执行第二个语句的话,x变量是被第二个set语句的覆盖了,但是问题是第二个set语句只有两个x呀,第一个set语句中的第三个x、Y值去哪里了呢?
data one;
input x y $;
cards;
1 groucho
3 harpo
5 kart
;
data two;
input x z$;
cards;
2 chico
4 zeppo
;
data three;
set one;
set two;
run;
proc print data=three;
run;
Obsxyz
12grouchochico
24harpozeppo