Data Parsing

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
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I think you're on the right track with Index() and Field(), however not sure you can do all that if logic along with it in one derivation. Can you post the syntax you've tried and the result(s) so far?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

What about

Code: Select all

 IF FIELD(In.BigColumn,"MOO",2)[18,3]="PR " THEN FIELD(In.BigColumn,"MOO",2)[21,50] ELSE ""
I would split this derivation into stage variables for efficiency and legibility, though.
Post Reply