multiple replacements in string
Posted: Wed Mar 14, 2007 6:17 am
Hello,
I have a requirement to shorten incoming addresses by replacing addressparts like STREET in STR, or AVENUE in AVE, SECOND in 2nd, NORTH in N etc.
For instance: address 'SECOND AVENUE NORTH' becomes '2nd AVE N'
Of course, I could build the (couple of hundreds) substitution rules in a routine. But I wondered if there are other methods (with less coding) to do this in Datastage?
Peter
I have a requirement to shorten incoming addresses by replacing addressparts like STREET in STR, or AVENUE in AVE, SECOND in 2nd, NORTH in N etc.
For instance: address 'SECOND AVENUE NORTH' becomes '2nd AVE N'
Of course, I could build the (couple of hundreds) substitution rules in a routine. But I wondered if there are other methods (with less coding) to do this in Datastage?
Peter