InitCap 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
vick
Participant
Posts: 88
Joined: Sun Oct 30, 2005 2:06 am

InitCap in Transformer

Post by vick »

Hello,

I want to do an initcap on a particular column in transformer.

I m doing it using CONVERT function for columns that has fixed values

For instance

Code: Select all


in.Col  has fixed values like 'web number'

CONVERT ("wn", "WN", in.col)

How do I go about for columns whose values are not fixed?

Pl suggest

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

Post by ray.wurlod »

There's nothing out of the box, but it would be a fairly straightforward parallel routine to write.

Consider your business rules, though. InitCap might also need to occur after certain other characters, like O'Brien or Sarbanes-Oxley.

Then there are the exceptions, such as fforbes-Hamilton, MacDonald or "de Gaulle".

What level of complexity do you require?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Vick, yet again there is a need for a C routine :wink:
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
gsym
Charter Member
Charter Member
Posts: 118
Joined: Thu Feb 02, 2006 3:05 pm

Post by gsym »

Thanks
Last edited by gsym on Wed Feb 28, 2007 4:39 pm, edited 2 times in total.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Psst....no hijacking :wink: It will depend upon the complexity, as Ray mentioned.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply