in operator in Transformer

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
Nagac
Premium Member
Premium Member
Posts: 127
Joined: Tue Mar 29, 2011 11:39 am
Location: India

in operator in Transformer

Post by Nagac »

Hi

I have a requirement to use IN operator in Constraints of Transformer.

Can we use this?

Eg:
ID In (1,2,3,4)

I could not find IN operator in Transformer.
MarkB
Premium Member
Premium Member
Posts: 95
Joined: Fri Oct 27, 2006 9:13 am

Re: in operator in Transformer

Post by MarkB »

Nagac wrote:I could not find IN operator in Transformer.
That's because there isn't one ... a simple search here would show this topic discussed many times over. You can use the Index function to get the results you need.
Nagac
Premium Member
Premium Member
Posts: 127
Joined: Tue Mar 29, 2011 11:39 am
Location: India

Post by Nagac »

Can you suggest how can we do this by using Index function?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Is your Search function broken?

Assuming that the value being sought is a single character called TheCode then a suitable expression would be

Code: Select all

Index("1234", InLink.TheCode, 1)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply