Support 805.461.7300
Sales
Our Technology. Your Success.

Insert a comma between last and first names in FIRST field

Description

This command is used to set up your FIRST field for the Parse feature of AccuZIP6, which takes first and last names that appear in a single field (in this case, the field called FIRST) and separates the data into its proper fields (keeping first names in FIRST and moving last names to LAST).

Use this command when your last name appears before the first name, with a space separating the fields. This command will replace the space in between the fields with a comma, which will tell AccuZIP (during the Parse feature) that the last name comes before the first name in the FIRST field.

The Command At Work

Before Command Before Command
Before running the Command
After running the Command

The Command

REPLACE first WITH STUFF(first,AT(" ",first),0,",") FOR CHR(32) $ ALLTRIM(first) AND !"," $ first

In this command, FIRST represents the field that contains the last and first names.

After clicking RUN, the space that separates the last name from the first will be replaced with a comma, so the Parse feature [under the Special menu] will work perfectly.

« Back to Commands

I am especially motivated to take time to draw attention to Vince. In two instances, we potentially faced loss of product – significant loss, but thanks to everyone’s efforts, most notably Vince’s, we ended up with minor re-work and zero loss of stock. He’s patient and thorough, knowledgeable and resourceful. And he’s patient – A Big Plus when dealing with me. Long story short, the guy was able to not only produce a solution, but to prove to me the veracity of it. I hung up the phone saving thousands of dollars in catalog stock, not lost but salvaged, and my department had to spend just a wee bit of time on job re-work (which I was happy to do, all things considered). But I also hung up with a peculiar urge to write about Vince, incongruent as that may be since I rarely am moved to write letters of this sort. So… In a time of crisis, Vince was a terrific asset and ally. If I were his boss, I’d attempt a merit raise authorization, he was that exceptional.
H.D., Shawnee Mission, KS