search for a specific string

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
phanikumar
Participant
Posts: 60
Joined: Tue Sep 20, 2011 10:44 pm
Location: INDIA

search for a specific string

Post by phanikumar »

Hi,

I have a scenario where i need to do a filter records from a particular column where it has value starts with 'zz'.Can some one explain how to acheive this.

Regards

kumar
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Several ways. What have you tried? One way would be to substring off the first two characters and check them, possibly in a constraint: YourField[1,2] = 'zz'

You could also look into the Filter stage.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply