Support 805.461.7300
Sales
NEW SITE. Our Technology. Your Success.

Transfer the last word in a field to another field

Description

This command will remove the last word in a field, and take that word and move it to its own field. The word "FromFieldname" in the command syntax below should be changed to the actual field name you want the last word removed from. Since the last word in FromFieldname will be moved in this command, make sure ToFieldname is changed to the actual name of the field that you will be moving the last word to. This command will not affect records that contain only one word in "fieldname". You can adjust the ">0" clause so the command only acts on records with "n" numbers of spaces. Example, change ">0" to "=3" and the command will only affect records that contain "3" spaces (examples shown below).

The Command At Work

Before Command After Command
Before running command
After running command

The Command

Copy this command, then paste it into the large text area of the command window:

Replace ToFieldname with ltrim(substr(FromFieldname,rat(" ",alltrim(FromFieldname)))), FromFieldname with left(FromFieldname,rat(" ",alltrim(FromFieldname))) for occur(" ",alltrim(FromFieldname))>0

In this command, ToFieldname represents the field that the last word will be filling into. FromFieldname is the field that contains the data that you'll be stripping.

After clicking RUN, the last word in the field will be stripped and placed in its own field.

« Back to Commands

We have been processing mail for about 10 or 12 years now after focusing on just printing since 1988. I must say that it has been a worthwhile addition to our business model. Our franchisor has always pitched the right vendors for their franchises and they sure knocked one out of the park with Accuzip. In those 10 or 12 years we have processed mail, not a lot, or high volume by all means, but a decent amount, we have come across some real doosies when it comes to list submission from our clients. Last year I received 3 lists from one of our better school districts that was formatted for an Avery label template in Excel, Word, and a PDF, that had to be merged together...a true mess for us, but then I called Geoff. He said he would try to make some sense of the situation. Well, he did just that. He merged those 3 disaster files, fixed the formatting issue, and saved them to a much more usable csv file. Now we were golden. Well, the same damn thing happened this year, and Geoff was there to save the day again. I had proposed to him sending us an invoice, or my issuing him a nice Starbucks Gift card, but he merely said that it was part of the superior customer service that Accuzip offers. I had mentioned this situation last year to Dave Belmonte while at our Minuteman Press convention and he had said that the Technical Support crew at Accuzip is extremely committed to their clients...as displayed by Geoff Cooke. In closing, I would like to say "Hats Off" to Geoff, Donna, and all of the technical support team at Accuzip. They are the greatest. Please accept my email as 5 Star +++++ review for Geoff and the support team at Accuzip.
S.P., Lafayette, CA