Splitting Tokens

Infosphere's Quality Product

Moderators: chulett, rschirm

Post Reply
U
Participant
Posts: 230
Joined: Tue Apr 17, 2007 8:23 pm
Location: Singapore

Splitting Tokens

Post by U »

I have a small problem with pattern-action language that I'd appreciate some help with.

Address data contains insufficient space, for example 64MAIN ST which returns >+ as its pattern.

What actions do I need to include to copy the 64 to {HouseNumber} and the MAIN to {StreetName1}? I can't figure this out from the Pattern Action Reference manual.

Thank you for your time.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Try this (from page 25 of the manual):

Code: Select all

> | T
COPY [1](n)  {HouseNumber}
COPY [1](-c) {StreetName1}
COPY_A [2] {StreetType}
You may prefer to use intermediate variables, also discussed on page 25.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
U
Participant
Posts: 230
Joined: Tue Apr 17, 2007 8:23 pm
Location: Singapore

Post by U »

Thank you for speedy response.

I can't believe I missed that! :oops:
Post Reply