[問題] SAS中使用SQL與MERGE合併資料

看板Statistics作者 (歐吉桑留學生)時間12年前 (2011/11/15 17:52), 編輯推噓0(002)
留言2則, 2人參與, 最新討論串1/3 (看更多)
想請問一下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

11/15 18:25, , 1F
set + set point 可以喔!
11/15 18:25, 1F

11/15 18:39, , 2F
請問樓上所說的set + set point是指???
11/15 18:39, 2F
文章代碼(AID): #1EmZPiUO (Statistics)
文章代碼(AID): #1EmZPiUO (Statistics)