I have comma delimited data with fields like this:
And need to split the data in the CUSTOMER NAME field (field 7) in two...
Most of the time the data in this field looks like this:
JOHN Q. PUBLIC
MS. JANE DOE
DR. FRANK FURTER
JOHN & MARY SMITH
I need output like this:
JOHN, Q. PUBLIC
JANE, DOE
FRANK, FURTER
JOHN, & MARY SMITH
That is I need to seperate the first word from the rest of the field and eliminate any prefix, such as Mr. Mr Ms MS. Dr DR., etc...
TIA for ANY help here...
Regards,
-Allen Moore
Code:
SERIAL#,STREET ADDRESS,CITY,ST,ZIP,RO,CUSTOMER NAME,EMAIL ADDRESS,ADVISOR,SERVICE ADVISOR,RO#,MILEAGE,C LBR SALE,C LBR G P,C PTS SALE,C PTS G P,C SUB SALE,C SUB G P,C CNT,C GOG SALE,C GOG G P,C MISC AMT,C T HRS,CPOST DT,W LBR SALE,W LBR G P,W PTS SALE,W PTS G P,W SUB SALE,W SUB G P,W CNT,W GOG SALE,W GOG G P,W MISC AMT,W T HRS,I LBR SALE,I LBR G P,I PTS SALE,I PTS G P,I SUB SALE,I SUB G P,I CNT,I GOG SALE,I GOG G P,I MISC AMT,I T HRS,TECHNICIAN,SVC OP CODES,CWI,OPERATION DESC,YEAR,MAKE NAME,CARLINE/MODEL,RES PHONE#,BUS PHONE#
And need to split the data in the CUSTOMER NAME field (field 7) in two...
Most of the time the data in this field looks like this:
JOHN Q. PUBLIC
MS. JANE DOE
DR. FRANK FURTER
JOHN & MARY SMITH
I need output like this:
JOHN, Q. PUBLIC
JANE, DOE
FRANK, FURTER
JOHN, & MARY SMITH
That is I need to seperate the first word from the rest of the field and eliminate any prefix, such as Mr. Mr Ms MS. Dr DR., etc...
TIA for ANY help here...
Regards,
-Allen Moore