How do I extract from string?

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
tomengers
Participant
Posts: 167
Joined: Tue Nov 19, 2002 12:20 pm
Location: Key West

How do I extract from string?

Post by tomengers »

I can use Count to tell me whether or not a desired value lives in a string, but how can I get the starting location of that value so I can extract it?

... tks in advance

... tom
pnchowdary
Participant
Posts: 232
Joined: Sat May 07, 2005 2:49 pm
Location: USA

Post by pnchowdary »

Hi Tom,

You can use the Index function.

Code: Select all

Index (string, substring, instance)
Thanks,
Naveen
Post Reply