Sorry, think perhaps this example would be clearer: Table A IdentifierCode Year Rating CN045 2000 B CN045 2001 C CN045 2003 A Table B IdentifierCode Year Alternate Code CN045 2001 336 So basically after sorting both Tables A and B by identifier code, tried to merge both data tablemerged; merge TableA TableB; by IdentifierCode; run; (this is after PROC SORT of both tables A and B by IdentifierCode) The result is in tablemerged: IdentifierCode Year Rating Alternate Code CN045 2000 B CN045 2001 C CN045 2003 A CN045 2001 336 However, would like the result to be following based on Table A: IdentifierCode Year Rating Alternate Code CN045 2000 B 336 CN045 2001 C 336 CN045 2003 A 336 So basically, just based on single line item, the alternate code can be populated into Table A based on Identifier Code. Assuming that merging by Year variable (so looking for similar year 2000 with 2000) is not important; just match by IdentifierCode.. Thank you!
... View more