Hi~ To match COMPGED scores to 100 or less in legt join, I used compged function as below. ============================================================================ libname proj "D:\SASWORK"; proc sql; *Left join ccmmatch with s34match via cusip; create table dualmatch as select a.*, b.mgrname, b.fdate, b.shares, b.shrout2, compged (a.lender, b.mgrname, 'I') as match from proj.ccmmatch a left join proj.s34match b on (a.cusip=b.s34cusip1) and (compged (a.lender, b.mgrname) le 100) and (year(a.FacilityStartDate)=year(b.FDATE)) and (month(a.FacilityStartDate) between month(b.FDATE)-2 and month(b.FDATE)); quit; ============================================================================ There is no errors in this code. However, my COBPGED scores are much larger than 100 as follows. I would really appreciate it if anyone could give me a help. Thanks!
... View more