最佳答案
您应该在日志中看到一条注释,告诉您原因。
WARNING: The variable a exists on an input data set and is also set by an I/O statement
option. The variable will not be included on any output data set and unexpected
results can occur.
如果不需要,请勿使用 IN=
数据集选项。或者确保不要使用数据集中已经是变量的名称。
data three;
merge one(in=in1) two;
by ID;
if in1;
run;
关于SAS合并两个具有相同变量名的数据集,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48026919/