Hi Marc,
You wrote:
And if some of the numbers are 3352244 without the 918 would that
mess things up?
sel custphone into phone from ..... where ....
SET VAR foneLength = (SLEN(.phone))
if length is less than 10 then you don't have an area code.
Bernie Lis

