Hi, How to find the correct PAN # in a given data. data can be in any format..A PAN should be first 5 chars,fallowed by 4 digits and ends with char...need to create a flag where PAN is in correct FORMAT on not. data test; input tt $10. cards; abcde1234f bcdef2345g bh4hg2351h 1235456797 ; run; In my above data 1st and 2nd records are in correct format, other records should be flogged with "incorrect". My question is that, i want data in correct format i.e 1st and 2nd obs. can any one help, that should be appreciated. Thanks, Yaswanth
... View more