I use following code in multiple programs. My problem is that if I change any code here then , I need to make same changes in multiple programs to keep it synchronized. Is there a way to write a macro, insert the following code in that macro and call that macro in all programs? In that way I just if I need to make updates then I just need to makes changes to one macro and need not worry about keeping all programs synched up. Data A; set B; if prxmatch("m/XXX/oi",Partner1) > 0 then Principa = 'X'; if prxmatch("m/YYYY/oi",Partner1) > 0 then Principal_SDC= 'Y'; if prxmatch("m/ZZ/oi",Partner1) > 0 then Principal_SDC= 'Z'; if prxmatch..... if prxmatch.. . . . . run; Thanks,
... View more