Data needs to change

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
Sourav
Participant
Posts: 17
Joined: Tue Sep 04, 2007 5:34 pm
Location: Delhi

Data needs to change

Post by Sourav »

Hi ,

I have a records like HYD_MSC14_VTTF1988.data but i need only HYD_MSC14 portion whereas _VTTF1988.data portion is same for all records .

Kindly help me
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

How about a transform stage substring derivation of "In.Column[1,9]"
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

I would suggest to do a substring in transformer like

Code: Select all

column[1,len(column)-14]
in this case as the right most part is constant.
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
parag.s.27
Participant
Posts: 221
Joined: Fri Feb 17, 2006 3:38 am
Location: India
Contact:

Post by parag.s.27 »

How about using Field function as its UNIX box.....

Well need to check if 7x supports it.
Thanks & Regards
Parag Saundattikar
Certified for Infosphere DataStage v8.0
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Parag,

What if they have HYD_MS_C14_VTTF1988.data ?

len-14 is best.
dspxlearn
Premium Member
Premium Member
Posts: 291
Joined: Sat Sep 10, 2005 1:26 am

Post by dspxlearn »

Seems, your duplicate post did not work :o

viewtopic.php?t=127512
Thanks and Regards!!
dspxlearn
Post Reply