regarding function used in transformer stage

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
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

regarding function used in transformer stage

Post by vijaykumar »

hi,
i wanted to change the values in column ename into lower case letters.
i have a column
ENAME
VIJAY
VII
VICT
i want to change all the values in my column ENAME into lower case.
for this in the transformer stage i used
downcase("%ENAME%")

iam getting the o/p data in the form
ENAME
%ENAME
%ENAME
plz help me, instead of changing into lower case, its replacing the names and printing %ENAME in these columns.
plz help me
cheers;
vijay
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

I think it should be

Code: Select all

downcase("Linkname.ColumnName")
Sam
I_Server_Whale
Premium Member
Premium Member
Posts: 1255
Joined: Wed Feb 02, 2005 11:54 am
Location: United States of America

Post by I_Server_Whale »

us1aslam1us wrote:I think it should be

Code: Select all

downcase("Linkname.ColumnName")
Sam
It SHOULD be as said by Sam. Otherwise, you are passing a hard-coded string.

Whale.
Anything that won't sell, I don't want to invent. Its sale is proof of utility, and utility is success.
Author: Thomas A. Edison 1847-1931, American Inventor, Entrepreneur, Founder of GE
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

All most all functions that you choose from transformer will have % to indicate to pass parameters. You need to pass Column name or any String within qoutes as input.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
vijaykumar
Participant
Posts: 228
Joined: Tue Oct 03, 2006 7:08 pm

Post by vijaykumar »

hi gurus,
thanks very much.

when i use downcase(linkname.columnname)- iam getting the actual result.

thanks very much.

cheers;
vijay
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Please mark the post as resolved. Note that Sam's solution is slightly incorrect - the reference to the input column must not be quoted.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
us1aslam1us
Charter Member
Charter Member
Posts: 822
Joined: Sat Sep 17, 2005 5:25 pm
Location: USA

Post by us1aslam1us »

Yes Ray thats done in a hurry.

Sam
Post Reply