I am trying to entnahme 5 number zipcode from the address fields. I have in the taste data (see below). The data has 5 digit roads fields in the beginning, and also 5 digit PO Box number in the middle part and 5-9 digit zipcodes, of in central part and some in the end of the string. my objective is to extract the 5 enter zipcode from the string but not the 5 digit street the PO Box number using regular imprint in SAS. Please take a look at the sample data and help me resolve the issue. I would highly appreciate your kind assistance. Contact Us
13001 NW42 SUPPLICATION OPA LOCKA FL 33054 USA
13001 NW 42 AVE OPA LOCKA FL 33054 USA
PO CHOOSE 98748 CHICAGOL AI 60693 USA
601 WOLFRAM 80TH STREET CHICAGOL IL 60620 2502
12651 S DIXIE HWY, RETINUE 321 MIAMI,FLORIDA33156
12713 SB 125TH AVE MIAMIFL 331865932
12713 SW 125TH AVE MIAMIFL 331865932
would extract331865932
and601 W 80TH STREET MICHIGAN IL 60620 2502
would extract60620 2502
?