data have;
input string $20.;
datalines;
1234567891A1234567
XXXXXXXXXXX9999999
1234567891A95X1234
;
data want;
set have;
if substr(string,11,1) = "A" and notdigit(substr(string,12,7)) = 0;
run;
data have;
input string $20.;
datalines;
1234567891A1234567
XXXXXXXXXXX9999999
1234567891A95X1234
;
data want;
set have;
if substr(string,11,1) = "A" and notdigit(substr(string,12,7)) = 0;
run;
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9. Sign up by Dec. 31 to get the 2024 rate of just $495. Register now!