Hi all, I need some help manipulating a dataset I have. In a data step, the code below produces the table that follows DATA Out.tmp1a; set out.tmp1; if TOS_CAT1_CD = 'FAC_IP' and MAP_CD in ('170','171','172','173','174','175','179') then TOS_CAT2_CD = 'MATER'; else TOS_CAT2_CD = ‘UNKNOWN’; RUN; INT_CLM_NUM CLM_LINE_NUM MAP_CD TOS_CAT1_CD TOS_CAT2_CD 123456789012345 0010 173 FAC_IP MATER 123456789012345 0020 174 FAC_IP MATER 123456789012345 0030 250 FAC_IP 123456789012345 0040 300 FAC_IP 123456789012345 0050 410 FAC_IP Although the produced table is right, I want to rewrite my code to affect every claim (INT_CLM_NUM) that meets the criteria listed instead of the claim line(CLM_LINE_NUM) So in this case, TOS_CAT2_CD should equal ‘MATER’ for every row in the table. I’m having trouble figuring out how to write this. Thank you for the help
... View more