作者liton (歐吉桑留學生)
看板Statistics
標題[問題] SAS中使用SQL與MERGE合併資料
時間Tue Nov 15 17:52:41 2011
想請問一下SAS中SQL和MERGE合併的產出結果
假設有兩個原始DATASET:A、B
Dataset A Dataset B
Common Column_A Common Column_B
M 1 M 1
M 2 M 2
我想用MERGE PROCESS合併成以下結果:
Common Column_A Column_B
M 1 1
M 1 2
M 2 1
M 2 2
The merge process is as following, but fail to meet my requirement.
Data merge_A_B;
merge a b;
by common;
run;
但似乎都會變成
Common Column_A Column_B
M 1 1
M 2 2
-------------------
以SQL寫的話 產出會符合我的需求
但有辦法用MERGE PROCESS寫嗎??(因為一些緣故 必須用MERGE寫)
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.71.218.254
→ ASD332:set + set point 可以喔! 11/15 18:25
→ liton:請問樓上所說的set + set point是指??? 11/15 18:39