What replaced the substring?

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
trokosz
Premium Member
Premium Member
Posts: 188
Joined: Thu Sep 16, 2004 6:38 pm
Contact:

What replaced the substring?

Post by trokosz »

In server jobs I used the substring function in Transformer but in parallel jobs this function no longer exists. What are good ways to get the substring affect in parallel jobs?

Thanks
dsxuserrio
Participant
Posts: 82
Joined: Thu Dec 02, 2004 10:27 pm
Location: INDIA

Post by dsxuserrio »

It is still there. It is an implicit substring
DSLink3.FIELD_NAME[start,length]
dsxuserrio

Kannan.N
Bangalore,INDIA
Amos.Rosmarin
Premium Member
Premium Member
Posts: 385
Joined: Tue Oct 07, 2003 4:55 am

Post by Amos.Rosmarin »

:idea: You can use a modify stage as well using this function:
stringField=substring [startPosition,len] (stringField)

Converts long strings/ustrings to shorter strings/ustrings by string extraction. The startPosition specifies the starting location of the substring; len specifies the substring length. If startPosition is positive, it specifies the byte offset into the string from the beginning of the string. If startPosition is negative, it specifies the byte offset from the end of the string.
Amos
Post Reply