Qualitystage standardize stage Creation
Posted: Wed Feb 26, 2014 2:42 am
Hi All,
I am trying to create a data Qualitystage standardize stage in DS 8.5 to standardize company names as follows:
Reference table sample from , RgTest.TBL :
"CORPORATION" CORP
"PARTNERSHIP" PART
"PARTNERS" PART
"COMPANY" CO
"FUND" FD
"BANK" BK
These rules should standardize company names of any length and apply to each word in the name - eg:
1 B 3 D E
A FUND 1 COMPANY
A PARTNERS C
PARTNERSHIP B
22 PARTNERSHIP
3 B PARTNERS D BANK
A B C D E A B C D E A B C D E PARTNERS
.. etc - you get the idea.
; (SEPLIST and STRIPLIST are standard, both include the space ' ')
?
CONVERT [1] @RgTest.TBL TEMP
COPY_S [1] {converteddata}
It works for single word name, but the "?" class doesn't seem to apply the rules to more than one word for some reason?
Do I have to have multiple "&" classes for each possible length of company name, and then apply the same CONVERT [1] to each token [2],[3],[4] ... and then CONCAT them back together?
Or is the way just to use "?" and apply to each and any word?
Please let me know how to achieve the above requirement?
Thanks,
Ram.S
I am trying to create a data Qualitystage standardize stage in DS 8.5 to standardize company names as follows:
Reference table sample from , RgTest.TBL :
"CORPORATION" CORP
"PARTNERSHIP" PART
"PARTNERS" PART
"COMPANY" CO
"FUND" FD
"BANK" BK
These rules should standardize company names of any length and apply to each word in the name - eg:
1 B 3 D E
A FUND 1 COMPANY
A PARTNERS C
PARTNERSHIP B
22 PARTNERSHIP
3 B PARTNERS D BANK
A B C D E A B C D E A B C D E PARTNERS
.. etc - you get the idea.
; (SEPLIST and STRIPLIST are standard, both include the space ' ')
?
CONVERT [1] @RgTest.TBL TEMP
COPY_S [1] {converteddata}
It works for single word name, but the "?" class doesn't seem to apply the rules to more than one word for some reason?
Do I have to have multiple "&" classes for each possible length of company name, and then apply the same CONVERT [1] to each token [2],[3],[4] ... and then CONCAT them back together?
Or is the way just to use "?" and apply to each and any word?
Please let me know how to achieve the above requirement?
Thanks,
Ram.S