Field Function

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
sri75
Premium Member
Premium Member
Posts: 132
Joined: Thu Sep 09, 2004 12:42 pm

Field Function

Post by sri75 »

Hi ,

my input data is like this sri@peoplesoft.com
Output shoud be like this peoplesoft.com
I used field(inputcolumn,"@",1,1)
But it is giving sri not peoplesoft.com

Can you please help me

Thanks
srividhya
Participant
Posts: 42
Joined: Tue May 31, 2005 10:11 am

Post by srividhya »

Hai sri
Use in this , it works for me
Field(inputstring, "@", DCount(inputstring,"@" ), 1)

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

Post by pnchowdary »

Hi Sri,

There is a small error in your field transformation. The correct tranformation to achieve your output is

Code: Select all

Field(inputcolumn,"@",2,1) 
Thanks,
Naveen
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

or simply

Code: Select all

Field(YourMailId, '@', 2)
Post Reply