Hi. Thanks for your input. I'm trying this but I just keep getting the same value in the new field as in the old...Here's the code (with some variable name changes to suit my actual data). I must be doing something wrong... Data: PART_NAME CLAIM_CAT EGR COOLER, REPLACEMENT KIT EXT EGR COOLER, REPLACEMENT KIT STD EGR COOLER, REPLACEMENT KIT PURCH Code: data testdave1; set testdave; retain PART_NAME; by PART_NAME; length concat $30.; if first.PART_NAME then concat=""; concat=catx('/',trim(concat),trim(claim_cat)); if last.PART_NAME then output; run; Results: PART_NAME CLAIM_CAT concat EGR COOLER, REPLACEMENT KIT PURCH PURCH
... View more