Reeza, That's great and I'm sure it'll work in the end. At the moment having a little problem with length of the numbers extracted. Here is a screen clip of a problem area where you'll see radius=20 and threshold=25 are clipped to 2 and 2: Here is a copy of my current code: data bernsen ; set bernsen_import ; radius=substr(scan(label, 3, ':-'), 2,1); threshold=substr(scan(label, 4, ':-'), 2,1); run; I'm looking at the SAS Help on these procedures but not there yet so thought I'd put it back out there. Dave
... View more