Title Case in Parallel

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Title Case in Parallel

Post by SURA »

Hi,

Is there is any direct function to do Titel Case in Parallel Extender? If so pls let me know.

Eg:

Input
------
Hi how are you.

Expected Output
-------------------
Hi How Are You.


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

Post by ArndW »

The EE Engine doesn't have such a function. If performance is not a consideration then you can use a BASIC transformer stage in your job and do the conversion with OCONV(In.Column,'MCN'). Either that or write your own c++ function to do the initial caps and call that.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Arnd meant "MCT", or you could use the CAPITALS Transform (which does the same thing), in a BASIC Transformer stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I guess I did mean MCT. I wasn't sure which conversion it was, lacking the manuals, and actually had MCP down until I remembered that it didn't do what the poster requested.
NBALA
Participant
Posts: 48
Joined: Tue Jul 11, 2006 11:52 am
Location: IL, USA

Post by NBALA »

If you use Oracle you can use the 'initcap' function


SQL> SELECT INITCAP('YOU TODAY') AS INIT_CAP FROM Dual;

INIT_CAP
---------
You Today
janreddy
Participant
Posts: 15
Joined: Tue Apr 07, 2009 9:57 am

How Do I use the CAPITALS tranform for Case Conversion

Post by janreddy »

Hi, I see a built-in transform CAPITALS is available under Transform/Built-In/String that converts a string to word-initial capitals. but how I do use CAPITALS built-in transform that convert the first letter of each to uppercase and remaining string to lower case.
I am unable to drag and drop this transform or I am missing something.

could you briefly explain how I can use this in DataStage Parallel job flow.

Thanks
Jana
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

There was a C++ routine which Priyadharshi wrote. Search.
Post Reply