Support 805.461.7300
Sales
Our Technology. Your Success.

Compare address in all records and mark the longest

The command below counts the number of characters in the field named Address and marks the record that has the largest number of characters.
You can apply this command to any field in your database simply by changing the field name.

comFieldName="address"

SELECT MAX(LEN(allt(&comFieldName))) FROM (ALIAS()) INTO ARRAY _longest

LOCATE FOR LEN(allt(&comFieldName))=_longest(1)

REPLACE x WITH "X"

« Back to Commands

I just wanted to let your team know how much I appreciate you. I'm still fairly new at doing mail data processing, and it if weren't for your active support -- even for the not so smart questions -- I probably wouldn't be doing as well in this job as I am now. I have much more to learn as I have seen, but I just wanted to say thank you for your help! You all are wonderful!
T.B., Greenville, SC